1616desc "Deploys the project to master branch, expects the command `git` to be available."
1717task :deploy => [ :build , :commited? ] do
1818Dir . mktmpdir do |tempdir |
19- print "Copying generated site: _site/* ->#{ tempdir } "
19+ puts "Copying generated site: _site/* ->#{ tempdir } "
2020FileUtils . cp_r "_site/." , tempdir
2121unless system "git checkout master"
2222fail
2323end
24- print "Copying generated site:#{ tempdir } /* -> ./"
25- FileUtils . cp_r "#{ tempdir } /." , "./"
26- system "git add ."
27- unless system "git commit"
28- fail
29- end
30- system "git push"
31- system "git checkout source"
32- print "DONE!"
24+ puts "Copying generated site:#{ tempdir } /* -> ./"
25+ puts Dir . entries tempdir
26+ # FileUtils.cp_r "#{tempdir}/.", "./"
27+ # system "git add ."
28+ # unless system "git commit"
29+ # fail
30+ # end
31+ # system "git push"
32+ # system "git checkout source"
33+ puts "DONE!"
3334end
3435end
3536
3637desc "Shows help text."
3738task :default do
38- print "Run `rake --tasks` or `rake -T` to see available commands\n "
39+ puts "Run `rake --tasks` or `rake -T` to see available commands\n "
3940end