lib/megam/core/cloudtemplate.rb
def lookup_by_instruction(group,action)
      single_cig = lookup_by_group_name(group)
      #single_cig.cloud_instructions_array.select { |cloudinstructions| cloudinstructions.lookup(action) }
	single_cig.cloud_instructions_array.each do |cia|
		@ci= cia.lookup(action)
	end
	@ci
    end
#returns a cloud instruction for a particular group, action
returns a cloud instruction for a particular group, action
returns a cloud instruction for a particular group action
def lookup_by_instruction(group,action)
      single_cig = lookup_by_group_name(group)
	single_cig.cloud_instructions_array.each do |cia|
		@ci= cia.lookup(action)
	end
	@ci
    end
def lookup_by_instruction ( group , action ) single_cig = lookup_by_group_name ( group ) single_cig . cloud_instructions_array . each do | cia | @ci = cia . lookup ( action ) end @ci end
returns a cloud instruction for a particular group, action
returns a cloud instruction for a particular group action
#single_cig.cloud_instructions_array.select { |cloudinstructions| cloudinstructions.lookup(action) }
group
action