Class: LaunchBase::CLI::Lint

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/launch_base/cli/lint.rb

Instance Method Summary collapse

Instance Method Details

#installObject



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

#updateObject



24
25
26
27
# File 'lib/launch_base/cli/lint.rb', line 24

def update
  invoke Base, 'update'
  invoke :install
end