Class: Crowbar::Client::Command::Base
- Inherits:
-
Object
- Object
- Crowbar::Client::Command::Base
- Defined in:
- lib/crowbar/client/command/base.rb
Direct Known Subclasses
Crowbar::Client::Command::Barclamp::List, Crowbar::Client::Command::Batch::Build, Crowbar::Client::Command::Batch::Export, HostIP::Allocate, HostIP::Deallocate, Interface::Disable, Interface::Enable, Node::Allocate, Node::Delete, Node::Hardware, Node::Identify, Node::List, Node::Powercycle, Node::Poweroff, Node::Poweron, Node::Reboot, Node::Reinstall, Node::Rename, Node::Reset, Node::Role, Node::Show, Node::Shutdown, Node::Status, Node::Transition, Proposal::Commit, Proposal::Create, Proposal::Delete, Proposal::Dequeue, Proposal::Edit, Proposal::List, Proposal::Show, Repository::Activate, Repository::ActivateAll, Repository::Deactivate, Repository::DeactivateAll, Repository::List, Reset::Nodes, Reset::Proposal, Role::List, Role::Show, VirtualIP::Allocate, VirtualIP::Deallocate
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#options ⇒ Object
Returns the value of attribute options.
-
#stderr ⇒ Object
Returns the value of attribute stderr.
-
#stdin ⇒ Object
Returns the value of attribute stdin.
-
#stdout ⇒ Object
Returns the value of attribute stdout.
Instance Method Summary collapse
-
#initialize(stdin, stdout, stderr, options = {}, args = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(stdin, stdout, stderr, options = {}, args = {}) ⇒ Base
Returns a new instance of Base.
29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/crowbar/client/command/base.rb', line 29 def initialize(stdin, stdout, stderr, = {}, args = {}) self.stdin = stdin self.stdout = stdout self.stderr = stderr self. = Hashie::Mash.new( ) self.args = Hashie::Mash.new( args ) end |
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args.
27 28 29 |
# File 'lib/crowbar/client/command/base.rb', line 27 def args @args end |
#options ⇒ Object
Returns the value of attribute options.
26 27 28 |
# File 'lib/crowbar/client/command/base.rb', line 26 def @options end |
#stderr ⇒ Object
Returns the value of attribute stderr.
25 26 27 |
# File 'lib/crowbar/client/command/base.rb', line 25 def stderr @stderr end |
#stdin ⇒ Object
Returns the value of attribute stdin.
23 24 25 |
# File 'lib/crowbar/client/command/base.rb', line 23 def stdin @stdin end |
#stdout ⇒ Object
Returns the value of attribute stdout.
24 25 26 |
# File 'lib/crowbar/client/command/base.rb', line 24 def stdout @stdout end |