Sha256: c89241eb509f43da0e0c82784c1969ac64ed1a935a23ca1092498892372d7fc8

Contents?: true

Size: 855 Bytes

Versions: 1

Compression:

Stored size: 855 Bytes

Contents

# Definisce un nodo, ovvero uno delle istanze di nodi che compongono il cluster
class Node
  attr_reader :box
  attr_reader :boxname
  attr_reader :hostname
  attr_reader :fqdn
  attr_reader :aliases
  attr_reader :ip
  attr_reader :cpus
  attr_reader :memory
  attr_reader :ansible_groups
  attr_reader :attributes
  attr_reader :index
  attr_reader :group_index

  def initialize(box, boxname, hostname, fqdn, aliases, ip, cpus, memory, ansible_groups, attributes, index, group_index) 
    @box            = box
    @boxname        = boxname
    @hostname       = hostname
    @fqdn           = fqdn
    @aliases        = aliases
    @ip             = ip
    @cpus           = cpus
    @memory         = memory
    @ansible_groups = ansible_groups
    @attributes     = attributes
    @index          = index
    @group_index    = group_index
  end 
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-compose-0.1.0 lib/vagrant/compose/util/node.rb