Class: TestbeatShellStub
- Inherits:
-
Object
- Object
- TestbeatShellStub
- Defined in:
- lib/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.
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 |
#exitstatus ⇒ Object
188 189 190 |
# File 'lib/spec_helper.rb', line 188 def exitstatus @hasrun.length end |
#hasrun ⇒ Object
175 176 177 |
# File 'lib/spec_helper.rb', line 175 def hasrun @hasrun end |
#ok? ⇒ Boolean
192 193 194 |
# File 'lib/spec_helper.rb', line 192 def ok? false end |
#out ⇒ Object
184 185 186 |
# File 'lib/spec_helper.rb', line 184 def out "(No guest shell for current testbeat context)" end |