Browse files

improve automation for publishing to

  • Loading branch information...
1 parent 45161a7 commit 705ddc540d5864d0d1635bccc87f39ecaf762a4c @dchelimsky dchelimsky committed Jul 7, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 Rakefile
@@ -40,6 +40,11 @@ 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/"
+ if `relish versions rspec/rspec-expectations` args[:version]
+ puts "Version #{args[:version]} already exists"
+ else
+ sh "relish versions:add rspec/rspec-expectations:#{args[:version]}"
+ end
sh "relish push rspec/rspec-expectations:#{args[:version]}"
sh "rm features/"

0 comments on commit 705ddc5

Please sign in to comment.