Class: Fission::Command
- Defined in:
- lib/fission.old/command.rb,
lib/fission.old/command/stop.rb,
lib/fission.old/command/clone.rb,
lib/fission.old/command/start.rb,
lib/fission.old/command/delete.rb,
lib/fission.old/command/status.rb,
lib/fission.old/command/suspend.rb,
lib/fission.old/command/snapshot_list.rb,
lib/fission.old/command/snapshot_create.rb,
lib/fission.old/command/snapshot_revert.rb
Direct Known Subclasses
Clone, Delete, SnapshotCreate, SnapshotList, SnapshotRevert, Start, Status, Stop, Suspend
Defined Under Namespace
Classes: Clone, Delete, SnapshotCreate, SnapshotList, SnapshotRevert, Start, Status, Stop, Suspend
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(args = []) ⇒ Command
constructor
A new instance of Command.
Constructor Details
#initialize(args = []) ⇒ Command
Returns a new instance of Command.
5 6 7 8 |
# File 'lib/fission.old/command.rb', line 5 def initialize(args=[]) @options = OpenStruct.new @args = args end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
3 4 5 |
# File 'lib/fission.old/command.rb', line 3 def args @args end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/fission.old/command.rb', line 3 def @options end |
Class Method Details
.help ⇒ Object
10 11 12 |
# File 'lib/fission.old/command.rb', line 10 def self.help self.new.option_parser.to_s end |