Class: Trek::Generators::Install::SlimLintGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Trek::Generators::Install::SlimLintGenerator
- Includes:
- Helpers
- Defined in:
- lib/generators/trek/install/slim_lint_generator.rb
Instance Method Summary collapse
Instance Method Details
#add_gem ⇒ Object
14 15 16 17 |
# File 'lib/generators/trek/install/slim_lint_generator.rb', line 14 def add_gem gem "slim_lint", group: [:development, :test] unless in_gemfile?("slim_lint") run "bundle install --quiet", abort_on_failure: true end |
#copy_slim_lint_config ⇒ Object
19 20 21 |
# File 'lib/generators/trek/install/slim_lint_generator.rb', line 19 def copy_slim_lint_config copy_file_at_root ".slim-lint.yml" end |