Permalink
Browse files

improve automation for publishing to relishapp.com

  • 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
View
@@ -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 Changelog.md features/Changelog.md"
+ sh "cp Changelog.md features/"
+ if `relish versions rspec/rspec-rails`.split.map(&:strip).include? 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/Changelog.md"
end

0 comments on commit 3a4d16b

Please sign in to comment.