Class: TestbeatShellStub

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

Instance Method Summary collapse

Constructor Details

#initializeTestbeatShellStub

Returns a new instance of TestbeatShellStub.



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

def initialize()
  @hasrun = Array.new
end

Instance Method Details

#exec(cmd) ⇒ Object



199
200
201
202
# File 'lib/rspec/spec_helper.rb', line 199

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

#exitstatusObject



208
209
210
# File 'lib/rspec/spec_helper.rb', line 208

def exitstatus
  @hasrun.length
end

#hasrunObject



195
196
197
# File 'lib/rspec/spec_helper.rb', line 195

def hasrun
  @hasrun
end

#ok?Boolean

Returns:

  • (Boolean)


212
213
214
# File 'lib/rspec/spec_helper.rb', line 212

def ok?
  false
end

#outObject



204
205
206
# File 'lib/rspec/spec_helper.rb', line 204

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