lib/vagrant/compose/config.rb
# Implements cluster creation, through the execution of the give code.
Implements cluster creation, through the execution of the give code.
Implements cluster creation through the execution of the give code .
def compose (name, &block)
  		  @cluster = VagrantPlugins::Compose::Programmatic::Cluster.new(name)
    		begin
          	block.call(@cluster)
  		  rescue Exception => e
  	      raise VagrantPlugins::Compose::Errors::ClusterInitializeError, :message => e.message, :cluster_name => name
  	    end
  		  @nodes, inventory = @cluster.compose
        @ansible_groups = filterInventory(inventory)
   	  end
def compose ( name , & block ) @cluster = VagrantPlugins :: Compose :: Programmatic :: Cluster . new ( name ) begin block . call ( @cluster ) rescue Exception => e raise VagrantPlugins :: Compose :: Errors :: ClusterInitializeError , :message => e . message , :cluster_name => name end @nodes , inventory = @cluster . compose @ansible_groups = filterInventory ( inventory ) end
Implements cluster creation, through the execution of the give code.
Implements cluster creation through the execution of the give code .
# create the cluster (the data structure representing the cluster) # executes the cluster configuration code # tranform cluster configuration into a list of nodes/ansible groups to be used for
name
<not_specific>
block
<not_specific>