Class: PublishedServiceChoice::ServiceExecution
- Defined in:
- lib/vagrant-skytap/api/published_service.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#env ⇒ Object
readonly
Returns the value of attribute env.
-
#iface ⇒ Object
readonly
Returns the value of attribute iface.
-
#service ⇒ Object
readonly
Returns the value of attribute service.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(env, iface, service) ⇒ ServiceExecution
constructor
A new instance of ServiceExecution.
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
#env ⇒ Object (readonly)
Returns the value of attribute env.
41 42 43 |
# File 'lib/vagrant-skytap/api/published_service.rb', line 41 def env @env end |
#iface ⇒ Object (readonly)
Returns the value of attribute iface.
41 42 43 |
# File 'lib/vagrant-skytap/api/published_service.rb', line 41 def iface @iface end |
#service ⇒ Object (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 |