Class: VagrantSubutai::Models::Container

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-subutai/models/container.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#container_sizeObject

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

#hostnameObject

Returns the value of attribute hostname.



6
7
8
# File 'lib/vagrant-subutai/models/container.rb', line 6

def hostname
  @hostname
end

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/vagrant-subutai/models/container.rb', line 6

def name
  @name
end

#ownerObject

Returns the value of attribute owner.



6
7
8
# File 'lib/vagrant-subutai/models/container.rb', line 6

def owner
  @owner
end

#peer_criteriaObject

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_idObject

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_mappingObject

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_idObject

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

#ansibleObject



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

#templateObject



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