lib/vagrant/compose/programmatic/node_group.rb
# utility function for resolving value/value generators
utility function for resolving value/value generators
utility function for resolving value / value generators
def generate(var, generator, node_index)
          unless generator.respond_to? :call
            return generator
          else
            begin
              return generator.call(@index, @name, node_index)
            rescue Exception => e
              raise VagrantPlugins::Compose::Errors::AttributeExpressionError, :message => e.message, :attribute => var, :node_index => node_index, :node_group_name => name
            end
          end
        end
def generate ( var , generator , node_index ) unless generator . respond_to? :call return generator else begin return generator . call ( @index , @name , node_index ) rescue Exception => e raise VagrantPlugins :: Compose :: Errors :: AttributeExpressionError , :message => e . message , :attribute => var , :node_index => node_index , :node_group_name => name end end end
utility function for resolving value/value generators
utility function for resolving value / value generators
var
<not_specific>
generator
<not_specific>
node_index
<not_specific>