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