Method: Connect::Dsl#import

Defined in:
lib/connect/dsl.rb

#import(variable_name, lookup) ⇒ Object

Import the specified data into the values list



230
231
232
233
234
235
236
# File 'lib/connect/dsl.rb', line 230

def import(variable_name, lookup)
  name = interpolated_value(name)
  Connect.debug "Importing variable #{variable_name}."
  fail 'no current importer' unless @current_importer
  value = @current_importer.lookup(lookup)
  assign(variable_name, value)
end