Class: Gemstash::CLI
- Inherits:
-
Thor
- Object
- Thor
- Gemstash::CLI
show all
- Defined in:
- lib/gemstash/cli.rb,
lib/gemstash/cli/base.rb,
lib/gemstash/cli/stop.rb,
lib/gemstash/cli/setup.rb,
lib/gemstash/cli/start.rb,
lib/gemstash/cli/status.rb,
lib/gemstash/cli/authorize.rb
Overview
Base Command Line Interface class.
Defined Under Namespace
Classes: Authorize, Base, Error, Setup, Start, Status, Stop
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.exit_on_failure? ⇒ Boolean
22
23
24
|
# File 'lib/gemstash/cli.rb', line 22
def self.exit_on_failure?
true
end
|
Instance Method Details
#authorize(*args) ⇒ Object
33
34
35
|
# File 'lib/gemstash/cli.rb', line 33
def authorize(*args)
Gemstash::CLI::Authorize.new(self, *args).run
end
|
#setup ⇒ Object
44
45
46
|
# File 'lib/gemstash/cli.rb', line 44
def setup
Gemstash::CLI::Setup.new(self).run
end
|
#start ⇒ Object
53
54
55
|
# File 'lib/gemstash/cli.rb', line 53
def start
Gemstash::CLI::Start.new(self).run
end
|
#status ⇒ Object
60
61
62
|
# File 'lib/gemstash/cli.rb', line 60
def status
Gemstash::CLI::Status.new(self).run
end
|
#stop ⇒ Object
67
68
69
|
# File 'lib/gemstash/cli.rb', line 67
def stop
Gemstash::CLI::Stop.new(self).run
end
|
#version ⇒ Object
72
73
74
|
# File 'lib/gemstash/cli.rb', line 72
def version
say "Gemstash version #{Gemstash::VERSION}"
end
|