
You will need to set ENV['LOCALEAPP'] to the secret key to run the update. Contact randym if you need it.
24 lines
604 B
Ruby
24 lines
604 B
Ruby
$: << 'lib'
|
|
namespace :localeapp do
|
|
desc "update all locale files from localeapp"
|
|
task :update do
|
|
require 'localeapp'
|
|
system 'localeapp pull'
|
|
end
|
|
|
|
end
|
|
namespace :ember do
|
|
desc 'update ember'
|
|
task :update do
|
|
if File.exists?('tmp/ember.js')
|
|
system 'cd tmp/ember.js; git fetch origin; git reset --hard origin/master'
|
|
else
|
|
system 'git clone https://github.com/emberjs/ember.js.git tmp/ember.js'
|
|
end
|
|
|
|
system 'cd tmp/ember.js; bundle update'
|
|
system 'cd tmp/ember.js; rake dist'
|
|
system 'cp tmp/ember.js/dist/ember.js assets/javascripts/vendor/ember.js'
|
|
end
|
|
end
|