Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

improve automation for publishing to relishapp.com

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