Class: Conjure::Target

Inherits:
Object
  • Object
show all
Defined in:
lib/conjure/target.rb

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Target

Returns a new instance of Target.



3
4
5
# File 'lib/conjure/target.rb', line 3

def initialize(options)
  @machine_name = options[:machine_name]
end

Instance Method Details

#docker_hostObject



15
16
17
# File 'lib/conjure/target.rb', line 15

def docker_host
  @docker_host ||= Service::DockerHost.new @machine_name
end

#ip_addressObject



11
12
13
# File 'lib/conjure/target.rb', line 11

def ip_address
  docker_host.ip_address
end

#shellObject



7
8
9
# File 'lib/conjure/target.rb', line 7

def shell
  docker_host.shell
end