Permalink
Browse files

Add readme, changelog and license to relish docs.

  • Loading branch information...
1 parent 851b83b commit 284494feb8f5521fa4f7015a17b681106f38c19e @myronmarston committed Mar 1, 2011
Showing with 24 additions and 0 deletions.
  1. +4 −0 .gitignore
  2. +18 −0 Rakefile
  3. +2 −0 features/.nav
View
@@ -27,3 +27,7 @@ features/fixtures/vcr_cassettes/**/temp/
tmp
rerun.txt
Gemfile.lock
+
+features/README.md
+features/CHANGELOG.md
+features/LICENSE
View
@@ -46,8 +46,26 @@ namespace :ci do
task :build => [:setup, :spec, :cucumber]
end
+def ensure_relish_doc_symlinked(filename)
+ from = File.expand_path("../features/#{filename}", __FILE__)
+ to = File.expand_path("../#{filename}", __FILE__)
+
+ if File.symlink?(from)
+ return if File.readlink(from) == to
+
+ # delete the old symlink
+ File.unlink(from)
+ end
+
+ FileUtils.ln_s to, from
+end
+
desc "Push cukes to relishapp using the relish-client-gem"
task :relish do
+ %w[ README.md CHANGELOG.md LICENSE ].each do |file|
+ ensure_relish_doc_symlinked(file)
+ end
+
require 'vcr/version'
sh "relish versions:add myronmarston/vcr:#{VCR.version}"
sh "relish push vcr:#{VCR.version}"
View
@@ -1,4 +1,6 @@
+CHANGELOG.md (Changelog)
about_the_cucumber_features.md (About the Cucumber Features)
+LICENSE (License)
- cassettes:
- format.feature
- no_cassette.feature

0 comments on commit 284494f

Please sign in to comment.