Class: LaunchBase::LintCLI
- Inherits:
-
Thor
- Object
- Thor
- LaunchBase::LintCLI
- Includes:
- Thor::Actions
- Defined in:
- lib/launch_base/lint_cli.rb
Instance Method Summary collapse
Instance Method Details
#install ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/launch_base/lint_cli.rb', line 11 def install ['.codeclimate.yml', '.eslintrc.json', '.mdlrc', '.rubocop.yml', 'config.reek'].each do |config_file_name| create_file(config_file_name) do gem_home.join('templates', config_file_name).read end end end |
#update ⇒ Object
23 24 25 26 |
# File 'lib/launch_base/lint_cli.rb', line 23 def update invoke CLI, 'update' invoke :install end |