add a rake task to update ember to current master

This commit is contained in:
Sven Fuchs 2012-06-27 16:32:45 +02:00
parent f02eb6afbc
commit c7b561a80e
2 changed files with 15 additions and 12 deletions

11
.gitignore vendored
View File

@ -1,15 +1,4 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile ~/.gitignore_global
# Ignore bundler config
/.bundle /.bundle
# Ignore the default SQLite database.
/db/*.sqlite3 /db/*.sqlite3
# Ignore all logfiles and tempfiles.
/log/*.log /log/*.log
/tmp /tmp

View File

@ -1 +1,15 @@
#!/usr/bin/env rake $: << '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; rake dist'
system 'cp tmp/ember.js/dist/ember.js assets/javascripts/vendor/ember.js'
end
end