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
- #command(options) ⇒ Object
- #exec_exist?(cmd) ⇒ Boolean
- #generator ⇒ Object
- #logger ⇒ Object
- #prompt(**options) ⇒ Object
- #which(cmd) ⇒ Object
Instance Method Details
#command(options) ⇒ Object
12 13 14 |
# File 'lib/lumise/commands.rb', line 12 def command() TTY::Command.new() end |
#exec_exist?(cmd) ⇒ Boolean
32 33 34 |
# File 'lib/lumise/commands.rb', line 32 def exec_exist?(cmd) TTY::Which.exist?(cmd) end |
#generator ⇒ Object
16 17 18 |
# File 'lib/lumise/commands.rb', line 16 def generator TTY::File end |
#logger ⇒ Object
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(**) TTY::Prompt.new() end |
#which(cmd) ⇒ Object
28 29 30 |
# File 'lib/lumise/commands.rb', line 28 def which(cmd) TTY::Which.which(cmd) end |