Class: Deployand::Command

Inherits:
CLAide::Command
  • Object
show all
Defined in:
lib/deployand/command.rb,
lib/deployand/command/iap.rb,
lib/deployand/command/init.rb,
lib/deployand/command/build.rb,
lib/deployand/command/publish.rb

Direct Known Subclasses

Build, Iap, Init, Publish

Defined Under Namespace

Classes: Build, Iap, Init, Publish

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Command

Returns a new instance of Command.



20
21
22
23
24
# File 'lib/deployand/command.rb', line 20

def initialize(argv)
  @verbose = argv.flag?('verbose')
  @silent = argv.flag?('silent')
  super
end

Class Method Details

.optionsObject



13
14
15
16
17
18
# File 'lib/deployand/command.rb', line 13

def self.options
  [
    ['--verbose', 'Show more debugging information'],
    ['--silent',  'Show nothing']
  ].concat(super)
end

Instance Method Details

#validate!Object



26
27
28
29
# File 'lib/deployand/command.rb', line 26

def validate!
  super
  banner! if @help
end