Skip to content

Commit

Permalink
Add readme, changelog and license to relish docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
myronmarston committed Mar 1, 2011
1 parent 851b83b commit 284494f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Expand Up @@ -27,3 +27,7 @@ features/fixtures/vcr_cassettes/**/temp/
tmp
rerun.txt
Gemfile.lock

features/README.md
features/CHANGELOG.md
features/LICENSE
18 changes: 18 additions & 0 deletions Rakefile
Expand Up @@ -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}"
Expand Down
2 changes: 2 additions & 0 deletions features/.nav
@@ -1,4 +1,6 @@
CHANGELOG.md (Changelog)
about_the_cucumber_features.md (About the Cucumber Features)
LICENSE (License)
- cassettes:
- format.feature
- no_cassette.feature
Expand Down

0 comments on commit 284494f

Please sign in to comment.