travis-web/Rakefile
2012-09-10 00:52:42 +02:00

17 lines
458 B
Ruby

$: << 'lib'
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