Class: PublicIpChoice::AttachmentExecution
- Defined in:
- lib/vagrant-skytap/api/public_ip.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.
-
#ip ⇒ Object
readonly
Returns the value of attribute ip.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(env, ip, iface) ⇒ AttachmentExecution
constructor
A new instance of AttachmentExecution.
Constructor Details
#initialize(env, ip, iface) ⇒ AttachmentExecution
Returns a new instance of AttachmentExecution.
47 48 49 50 51 |
# File 'lib/vagrant-skytap/api/public_ip.rb', line 47 def initialize(env, ip, iface) @env = env @ip = ip @iface = iface end |
Instance Attribute Details
#env ⇒ Object (readonly)
Returns the value of attribute env.
45 46 47 |
# File 'lib/vagrant-skytap/api/public_ip.rb', line 45 def env @env end |
#iface ⇒ Object (readonly)
Returns the value of attribute iface.
45 46 47 |
# File 'lib/vagrant-skytap/api/public_ip.rb', line 45 def iface @iface end |
#ip ⇒ Object (readonly)
Returns the value of attribute ip.
45 46 47 |
# File 'lib/vagrant-skytap/api/public_ip.rb', line 45 def ip @ip end |
Class Method Details
.make(env, ip, iface) ⇒ Object
37 38 39 40 41 42 43 |
# File 'lib/vagrant-skytap/api/public_ip.rb', line 37 def self.make(env, ip, iface) if ip.attached? UseAttachmentExecution.new(env, ip, iface) else AttachAndUseExecution.new(env, ip, iface) end end |