Class: AgentStatusBulb::Cli
- Inherits:
-
Thor
- Object
- Thor
- AgentStatusBulb::Cli
- Defined in:
- lib/agent_status_bulb/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
- #configure(*_args) ⇒ Object
- #idle_command(*_args) ⇒ Object
- #off_command(*_args) ⇒ Object
- #run_command(*_args) ⇒ Object
- #version(*_args) ⇒ Object
- #wait_command(*_args) ⇒ Object
Class Method Details
.exit_on_failure? ⇒ Boolean
61 62 63 |
# File 'lib/agent_status_bulb/cli.rb', line 61 def self.exit_on_failure? true end |
Instance Method Details
#configure(*_args) ⇒ Object
16 17 18 |
# File 'lib/agent_status_bulb/cli.rb', line 16 def configure(*_args) handle_error { configurator.configure! } end |
#idle_command(*_args) ⇒ Object
36 37 38 |
# File 'lib/agent_status_bulb/cli.rb', line 36 def idle_command(*_args) handle_error { bulb.green } end |
#off_command(*_args) ⇒ Object
41 42 43 |
# File 'lib/agent_status_bulb/cli.rb', line 41 def off_command(*_args) handle_error { bulb.off } end |
#run_command(*_args) ⇒ Object
26 27 28 |
# File 'lib/agent_status_bulb/cli.rb', line 26 def run_command(*_args) handle_error { bulb.blue } end |
#version(*_args) ⇒ Object
21 22 23 |
# File 'lib/agent_status_bulb/cli.rb', line 21 def version(*_args) puts AgentStatusBulb::VERSION end |
#wait_command(*_args) ⇒ Object
31 32 33 |
# File 'lib/agent_status_bulb/cli.rb', line 31 def wait_command(*_args) handle_error { bulb.orange } end |