Class: LaunchBase::LintCLI

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

Instance Method Summary collapse

Instance Method Details

#installObject



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

#updateObject



23
24
25
26
# File 'lib/launch_base/lint_cli.rb', line 23

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