Class: TestbeatShellStub

Inherits:
Object
  • Object
show all
Defined in:
lib/spec_helper.rb

Instance Method Summary collapse

Constructor Details

#initializeTestbeatShellStub

Returns a new instance of TestbeatShellStub.



171
172
173
# File 'lib/spec_helper.rb', line 171

def initialize()
  @hasrun = Array.new
end

Instance Method Details

#exec(cmd) ⇒ Object



179
180
181
182
# File 'lib/spec_helper.rb', line 179

def exec(cmd)
  @hasrun.push(cmd)
  $logger.warn "No guest shell available to exec: '#{cmd}'"
end

#exitstatusObject



188
189
190
# File 'lib/spec_helper.rb', line 188

def exitstatus
  @hasrun.length
end

#hasrunObject



175
176
177
# File 'lib/spec_helper.rb', line 175

def hasrun
  @hasrun
end

#ok?Boolean

Returns:

  • (Boolean)


192
193
194
# File 'lib/spec_helper.rb', line 192

def ok?
  false
end

#outObject



184
185
186
# File 'lib/spec_helper.rb', line 184

def out
  "(No guest shell for current testbeat context)"
end