Class: VagrantSubutai::Models::Container
- Inherits:
-
Object
- Object
- VagrantSubutai::Models::Container
- Defined in:
- lib/vagrant-subutai/models/container.rb
Instance Attribute Summary collapse
-
#container_size ⇒ Object
Returns the value of attribute container_size.
-
#hostname ⇒ Object
Returns the value of attribute hostname.
-
#name ⇒ Object
Returns the value of attribute name.
-
#owner ⇒ Object
Returns the value of attribute owner.
-
#peer_criteria ⇒ Object
Returns the value of attribute peer_criteria.
-
#peer_id ⇒ Object
Returns the value of attribute peer_id.
-
#port_mapping ⇒ Object
Returns the value of attribute port_mapping.
-
#resource_host_id ⇒ Object
Returns the value of attribute resource_host_id.
Instance Method Summary collapse
Instance Attribute Details
#container_size ⇒ Object
Returns the value of attribute container_size.
6 7 8 |
# File 'lib/vagrant-subutai/models/container.rb', line 6 def container_size @container_size end |
#hostname ⇒ Object
Returns the value of attribute hostname.
6 7 8 |
# File 'lib/vagrant-subutai/models/container.rb', line 6 def hostname @hostname end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/vagrant-subutai/models/container.rb', line 6 def name @name end |
#owner ⇒ Object
Returns the value of attribute owner.
6 7 8 |
# File 'lib/vagrant-subutai/models/container.rb', line 6 def owner @owner end |
#peer_criteria ⇒ Object
Returns the value of attribute peer_criteria.
6 7 8 |
# File 'lib/vagrant-subutai/models/container.rb', line 6 def peer_criteria @peer_criteria end |
#peer_id ⇒ Object
Returns the value of attribute peer_id.
6 7 8 |
# File 'lib/vagrant-subutai/models/container.rb', line 6 def peer_id @peer_id end |
#port_mapping ⇒ Object
Returns the value of attribute port_mapping.
6 7 8 |
# File 'lib/vagrant-subutai/models/container.rb', line 6 def port_mapping @port_mapping end |
#resource_host_id ⇒ Object
Returns the value of attribute resource_host_id.
6 7 8 |
# File 'lib/vagrant-subutai/models/container.rb', line 6 def resource_host_id @resource_host_id end |
Instance Method Details
#ansible ⇒ Object
26 27 28 29 30 31 |
# File 'lib/vagrant-subutai/models/container.rb', line 26 def ansible @hostname = "generic-ansible" @container_size = "TINY" @name = "generic-ansible" @owner = "subutai" # ec54e1cff2341cdc55be5e961cfd15b4f97087e8 end |
#template ⇒ Object
22 23 24 |
# File 'lib/vagrant-subutai/models/container.rb', line 22 def template @template end |
#template=(value) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/vagrant-subutai/models/container.rb', line 15 def template=(value) temp = value.split('@') @template = value @name = temp[0] @owner = temp[1] end |