Class: CloudRailSi::ServiceCode::Out

Inherits:
Object
  • Object
show all
Defined in:
lib/cloudrail_si/servicecode/commands/debug/Out.rb

Instance Method Summary collapse

Instance Method Details

#execute(environment, parameters) ⇒ Object



11
12
13
14
15
16
17
18
19
20
21
# File 'lib/cloudrail_si/servicecode/commands/debug/Out.rb', line 11

def execute(environment, parameters)
    Helper.assert(parameters.length >= 1)
    str = ''
    (0..parameters.length - 1).each do |i|
        parameter = parameters[i]
        part = Helper.resolve(environment, parameter)
        part = part.to_json if (Helper.is_array(part) || Helper.is_object(part))
        str += part.to_s
    end
    print str
end

#get_identifierObject



7
8
9
# File 'lib/cloudrail_si/servicecode/commands/debug/Out.rb', line 7

def get_identifier
    'debug.out'
end