Class: Producer::Core::Env

Inherits:
Object
  • Object
show all
Defined in:
lib/producer/core/env.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEnv

Returns a new instance of Env.



7
8
9
10
# File 'lib/producer/core/env.rb', line 7

def initialize
  @output = $stdout
  @target = nil
end

Instance Attribute Details

#output(str) ⇒ Object



12
13
14
# File 'lib/producer/core/env.rb', line 12

def output(str)
  @output.puts str
end

#targetObject

Returns the value of attribute target.



5
6
7
# File 'lib/producer/core/env.rb', line 5

def target
  @target
end

Instance Method Details

#remoteObject



16
17
18
# File 'lib/producer/core/env.rb', line 16

def remote
  @remote ||= Remote.new(target)
end