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 18 19 |
# File 'lib/generators/trek/install/slim_lint_generator.rb', line 14 def add_gem return if in_gemfile?("slim_lint") gem "slim_lint", group: [:development, :test] bundle_install end |
#copy_slim_lint_config ⇒ Object
21 22 23 |
# File 'lib/generators/trek/install/slim_lint_generator.rb', line 21 def copy_slim_lint_config copy_file_at_root ".slim-lint.yml" end |