Class: Deployand::Command
- Inherits:
-
CLAide::Command
- Object
- CLAide::Command
- Deployand::Command
- 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
Defined Under Namespace
Classes: Build, Iap, Init, Publish
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv) ⇒ Command
constructor
A new instance of Command.
- #validate! ⇒ Object
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
.options ⇒ Object
13 14 15 16 17 18 |
# File 'lib/deployand/command.rb', line 13 def self. [ ['--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 if @help end |