Permalink
Browse files

[SETUP] Fixed the `rake web:update` Rake task

  • Loading branch information...
1 parent d280482 commit bcf2914e909b9475d58776cb554125834b8c573c @karmi committed Dec 31, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 Rakefile
View
@@ -28,7 +28,11 @@ namespace :web do
desc "Update the Github website"
task :update => :generate do
- current_branch = `git branch --no-color`.split("\n").select { |line| line =~ /^\* / }.to_s.gsub(/\* (.*)/, '\1')
+ current_branch = `git branch --no-color`.
+ split("\n").
+ select { |line| line =~ /^\* / }.
+ first.to_s.
+ gsub(/\* (.*)/, '\1')
(puts "Unable to determine current branch"; exit(1) ) unless current_branch
system "git checkout web"
system "cp examples/tire-dsl.html index.html"

0 comments on commit bcf2914

Please sign in to comment.