Files
redpotion/lib/redpotion.rb
Gant Laborde a295c4c86e changed append to insert above ./app
should be right above app, so RMQ and ProMotion have done their work.
2014-11-30 22:15:47 -06:00

19 lines
514 B
Ruby

# encoding: utf-8
unless defined?(Motion::Project::Config)
raise "This file must be required within a RubyMotion project Rakefile."
end
require 'ruby_motion_query'
require 'ProMotion'
require 'motion_print'
lib_dir_path = File.dirname(File.expand_path(__FILE__))
Motion::Project::App.setup do |app|
insert_point = app.files.find_index { |file| file =~ /^(?:\.\/)?app\// } || 0
Dir.glob(File.join(lib_dir_path, "project/**/*.rb")).reverse.each do |file|
app.files.insert(insert_point, file)
end
end