Class: Crowbar::Client::Command::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/crowbar/client/command/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options = {}, args = {})
  self.stdin = stdin
  self.stdout = stdout
  self.stderr = stderr

  self.options = Hashie::Mash.new(
    options
  )

  self.args = Hashie::Mash.new(
    args
  )
end

Instance Attribute Details

#argsObject

Returns the value of attribute args.



27
28
29
# File 'lib/crowbar/client/command/base.rb', line 27

def args
  @args
end

#optionsObject

Returns the value of attribute options.



26
27
28
# File 'lib/crowbar/client/command/base.rb', line 26

def options
  @options
end

#stderrObject

Returns the value of attribute stderr.



25
26
27
# File 'lib/crowbar/client/command/base.rb', line 25

def stderr
  @stderr
end

#stdinObject

Returns the value of attribute stdin.



23
24
25
# File 'lib/crowbar/client/command/base.rb', line 23

def stdin
  @stdin
end

#stdoutObject

Returns the value of attribute stdout.



24
25
26
# File 'lib/crowbar/client/command/base.rb', line 24

def stdout
  @stdout
end