Class: Lumise::Commands::Rubocop

Inherits:
Lumise::Command show all
Includes:
L
Defined in:
lib/lumise/commands/rubocop.rb,
lib/lumise/services/commands/rubocop/repo_files.rb,
lib/lumise/services/commands/rubocop/update_gems.rb,
lib/lumise/services/commands/rubocop/update_todo.rb,
lib/lumise/services/commands/rubocop/update_files.rb

Defined Under Namespace

Classes: RepoFiles, UpdateFiles, UpdateGems, UpdateTodo

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from L

#l

Methods included from Lumise::Commands

#command, #exec_exist?, #generator, #logger, #prompt, #which

Constructor Details

#initialize(_options) ⇒ Rubocop

Returns a new instance of Rubocop.



9
10
11
12
13
14
# File 'lib/lumise/commands/rubocop.rb', line 9

def initialize(_options)
  verify_dependencies
  @plugins = set_plugins
rescue Which::Curl::CurlError
  logger.error 'Please install curl'
end

Instance Attribute Details

#pluginsObject (readonly)

Returns the value of attribute plugins.



16
17
18
# File 'lib/lumise/commands/rubocop.rb', line 16

def plugins
  @plugins
end

Instance Method Details

#executeObject



18
19
20
21
22
# File 'lib/lumise/commands/rubocop.rb', line 18

def execute
  update_gems
  create_files
  update_todo
end