Class: SSHake::Mock::Environment

Inherits:
Object
  • Object
show all
Defined in:
lib/sshake/mock/environment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#capturesObject

Returns the value of attribute captures.



12
13
14
# File 'lib/sshake/mock/environment.rb', line 12

def captures
  @captures
end

#commandObject

Returns the value of attribute command.



12
13
14
# File 'lib/sshake/mock/environment.rb', line 12

def command
  @command
end

#optionsObject

Returns the value of attribute options.



12
13
14
# File 'lib/sshake/mock/environment.rb', line 12

def options
  @options
end

Instance Method Details

#storeObject



14
15
16
# File 'lib/sshake/mock/environment.rb', line 14

def store
  @session&.store
end

#written_filesObject



18
19
20
# File 'lib/sshake/mock/environment.rb', line 18

def written_files
  @session&.written_files
end