Module: Lumise::Commands

Included in:
Command, Rubocop::RepoFiles, Rubocop::UpdateFiles, Rubocop::UpdateGems, Rubocop::UpdateTodo
Defined in:
lib/lumise/commands.rb,
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: Rubocop

Instance Method Summary collapse

Instance Method Details

#command(options) ⇒ Object



12
13
14
# File 'lib/lumise/commands.rb', line 12

def command(options)
  TTY::Command.new(options)
end

#exec_exist?(cmd) ⇒ Boolean

Returns:

  • (Boolean)


32
33
34
# File 'lib/lumise/commands.rb', line 32

def exec_exist?(cmd)
  TTY::Which.exist?(cmd)
end

#generatorObject



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

def generator
  TTY::File
end

#loggerObject



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

def logger
  TTY::Logger.new
end

#prompt(**options) ⇒ Object



24
25
26
# File 'lib/lumise/commands.rb', line 24

def prompt(**options)
  TTY::Prompt.new(options)
end

#which(cmd) ⇒ Object



28
29
30
# File 'lib/lumise/commands.rb', line 28

def which(cmd)
  TTY::Which.which(cmd)
end