Class: Sparoid::CLI
- Inherits:
-
Thor
- Object
- Thor
- Sparoid::CLI
- Defined in:
- lib/sparoid/cli.rb
Overview
CLI
Class Method Summary collapse
Instance Method Summary collapse
- #auth(host, port = 8484) ⇒ Object
- #connect(host, port, spa_port = 8484) ⇒ Object
- #keygen ⇒ Object
- #version ⇒ Object
Class Method Details
.exit_on_failure? ⇒ Boolean
40 41 42 |
# File 'lib/sparoid/cli.rb', line 40 def self.exit_on_failure? true end |
Instance Method Details
#auth(host, port = 8484) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/sparoid/cli.rb', line 13 def auth(host, port = 8484) send_auth(host, port, [:config]) rescue Errno::ENOENT abort "Sparoid: Config not found" rescue StandardError => e abort "Sparoid: #{e.} (#{host})" end |