Browse files

improve automation for publishing to

  • Loading branch information...
1 parent fb2f6f1 commit 3a4d16ba1d49e53815f665eff20b4f71fa290950 @dchelimsky dchelimsky committed Jul 7, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 Rakefile
@@ -112,7 +112,12 @@ end
desc "Push docs/cukes to relishapp using the relish-client-gem"
task :relish, :version do |t, args|
raise "rake relish[VERSION]" unless args[:version]
- sh "cp features/"
+ sh "cp features/"
+ if `relish versions rspec/rspec-rails` args[:version]
+ puts "Version #{args[:version]} already exists"
+ else
+ sh "relish versions:add rspec/rspec-rails:#{args[:version]}"
+ end
sh "relish push rspec/rspec-rails:#{args[:version]}"
sh "rm features/"

0 comments on commit 3a4d16b

Please sign in to comment.