Class: SSHake::Mock::Environment
- Inherits:
-
Object
- Object
- SSHake::Mock::Environment
- Defined in:
- lib/sshake/mock/environment.rb
Instance Attribute Summary collapse
-
#captures ⇒ Object
Returns the value of attribute captures.
-
#command ⇒ Object
Returns the value of attribute command.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(session) ⇒ Environment
constructor
A new instance of Environment.
- #store ⇒ Object
- #written_files ⇒ Object
Constructor Details
#initialize(session) ⇒ Environment
Returns a new instance of Environment.
7 8 9 10 |
# File 'lib/sshake/mock/environment.rb', line 7 def initialize(session) @session = session @captures = [] end |
Instance Attribute Details
#captures ⇒ Object
Returns the value of attribute captures.
12 13 14 |
# File 'lib/sshake/mock/environment.rb', line 12 def captures @captures end |
#command ⇒ Object
Returns the value of attribute command.
12 13 14 |
# File 'lib/sshake/mock/environment.rb', line 12 def command @command end |
#options ⇒ Object
Returns the value of attribute options.
12 13 14 |
# File 'lib/sshake/mock/environment.rb', line 12 def @options end |
Instance Method Details
#store ⇒ Object
14 15 16 |
# File 'lib/sshake/mock/environment.rb', line 14 def store @session&.store end |
#written_files ⇒ Object
18 19 20 |
# File 'lib/sshake/mock/environment.rb', line 18 def written_files @session&.written_files end |