Class: Fission::Command

Inherits:
Object show all
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

Defined Under Namespace

Classes: Clone, Delete, SnapshotCreate, SnapshotList, SnapshotRevert, Start, Status, Stop, Suspend

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#argsObject (readonly)

Returns the value of attribute args


3
4
5
# File 'lib/fission.old/command.rb', line 3

def args
  @args
end

#optionsObject (readonly)

Returns the value of attribute options


3
4
5
# File 'lib/fission.old/command.rb', line 3

def options
  @options
end

Class Method Details

.helpObject


10
11
12
# File 'lib/fission.old/command.rb', line 10

def self.help
  self.new.option_parser.to_s
end