Sha256: 79e73474324726925336c97ba2c3922dee5ee5c5cebcf5b7b95e407d2efbf106

Contents?: true

Size: 1 KB

Versions: 3

Compression:

Stored size: 1 KB

Contents

module VagrantPlugins
  module Compose

    # 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
  
  end 
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vagrant-compose-0.2.2 lib/vagrant/compose/util/node.rb
vagrant-compose-0.2.1 lib/vagrant/compose/util/node.rb
vagrant-compose-0.2.0 lib/vagrant/compose/util/node.rb