Exception: Cuken::Api::Chef::Knife::CommandTimeout

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/cuken/api/chef/knife.rb

Overview

Ripped from Grit: github.com/mojombo/grit

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command = nil, bytes_read = nil) ⇒ CommandTimeout

Returns a new instance of CommandTimeout.



36
37
38
39
# File 'lib/cuken/api/chef/knife.rb', line 36

def initialize(command = nil, bytes_read = nil)
  @command = command
  @bytes_read = bytes_read
end

Instance Attribute Details

#bytes_readObject

Returns the value of attribute bytes_read.



34
35
36
# File 'lib/cuken/api/chef/knife.rb', line 34

def bytes_read
  @bytes_read
end

#commandObject

Returns the value of attribute command.



33
34
35
# File 'lib/cuken/api/chef/knife.rb', line 33

def command
  @command
end