Class: Gemstash::CLI

Inherits:
Thor
  • Object
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

Returns:

  • (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

#setupObject



44
45
46
# File 'lib/gemstash/cli.rb', line 44

def setup
  Gemstash::CLI::Setup.new(self).run
end

#startObject



53
54
55
# File 'lib/gemstash/cli.rb', line 53

def start
  Gemstash::CLI::Start.new(self).run
end

#statusObject



60
61
62
# File 'lib/gemstash/cli.rb', line 60

def status
  Gemstash::CLI::Status.new(self).run
end

#stopObject



67
68
69
# File 'lib/gemstash/cli.rb', line 67

def stop
  Gemstash::CLI::Stop.new(self).run
end

#versionObject



72
73
74
# File 'lib/gemstash/cli.rb', line 72

def version
  say "Gemstash version #{Gemstash::VERSION}"
end