Skip to content

Commit

Permalink
improve automation for publishing to relishapp.com
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed Jul 7, 2012
1 parent fb2f6f1 commit 3a4d16b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Rakefile
Expand Up @@ -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
Expand Down

0 comments on commit 3a4d16b

Please sign in to comment.