Class: TestbeatShellStub
- Inherits:
-
Object
- Object
- TestbeatShellStub
- Defined in:
- lib/rspec/spec_helper.rb
Instance Method Summary collapse
- #exec(cmd) ⇒ Object
- #exitstatus ⇒ Object
- #hasrun ⇒ Object
-
#initialize ⇒ TestbeatShellStub
constructor
A new instance of TestbeatShellStub.
- #ok? ⇒ Boolean
- #out ⇒ Object
Constructor Details
#initialize ⇒ TestbeatShellStub
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 |
#exitstatus ⇒ Object
208 209 210 |
# File 'lib/rspec/spec_helper.rb', line 208 def exitstatus @hasrun.length end |
#hasrun ⇒ Object
195 196 197 |
# File 'lib/rspec/spec_helper.rb', line 195 def hasrun @hasrun end |
#ok? ⇒ Boolean
212 213 214 |
# File 'lib/rspec/spec_helper.rb', line 212 def ok? false end |
#out ⇒ Object
204 205 206 |
# File 'lib/rspec/spec_helper.rb', line 204 def out "(No guest shell for current testbeat context)" end |