Top Level Namespace

Constant Summary collapse

FLOW_COMPONENTS =
%w{net json digest store base64 location task ui}

Instance Method Summary collapse

Instance Method Details

#invoke_rake(platform, task) ⇒ Object

Flow project.



14
15
16
17
18
19
# File 'lib/motion-flow.rb', line 14

def invoke_rake(platform, task)
  trace = Rake.application.options.trace == true

  template = platform.to_s == 'android' ? 'android' : 'cocoa'
  system "template=#{platform} rake -r \"#{File.dirname(__FILE__)}/#{template}.rb\" -f \"config/#{platform}.rb\" \"#{task}\" #{trace ? '--trace' : ''}" or exit 1
end