Class: PublishedServiceChoice::ServiceExecution

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-skytap/api/published_service.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(env, iface, service) ⇒ ServiceExecution

Returns a new instance of ServiceExecution.



43
44
45
46
47
# File 'lib/vagrant-skytap/api/published_service.rb', line 43

def initialize(env, iface, service)
  @env = env
  @iface = iface
  @service = service
end

Instance Attribute Details

#envObject (readonly)

Returns the value of attribute env.



41
42
43
# File 'lib/vagrant-skytap/api/published_service.rb', line 41

def env
  @env
end

#ifaceObject (readonly)

Returns the value of attribute iface.



41
42
43
# File 'lib/vagrant-skytap/api/published_service.rb', line 41

def iface
  @iface
end

#serviceObject (readonly)

Returns the value of attribute service.



41
42
43
# File 'lib/vagrant-skytap/api/published_service.rb', line 41

def service
  @service
end

Class Method Details

.make(env, iface, service = nil) ⇒ Object



33
34
35
36
37
38
39
# File 'lib/vagrant-skytap/api/published_service.rb', line 33

def self.make(env, iface, service=nil)
  if service
    UseServiceExecution.new(env, iface, service)
  else
    CreateAndUseServiceExecution.new(env, iface, service)
  end
end