Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit bcf2914e909b9475d58776cb554125834b8c573c 1 parent d280482
@karmi authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 Rakefile
View
6 Rakefile
@@ -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"
Please sign in to comment.
Something went wrong with that request. Please try again.