Sha256: 84f0c2947b6a25541a63e8676b8f078d263eca0dbb5fa67d899d8204ddfb5c53

Contents?: true

Size: 1.24 KB

Versions: 2

Compression:

Stored size: 1.24 KB

Contents

#!/usr/bin/env ruby

begin
  require 'bundler'
  Bundler::GemHelper.install_tasks
rescue LoadError
  puts "Bundler not available. Install it with: gem install bundler"
end

begin
  require 'cucumber/rake/task'
  #Cucumber::Rake::Task.new(:features)
rescue LoadError
  task :features do
    abort "Cucumber is not available. In order to run features, you must: sudo gem install cucumber"
  end
end

task :default => :features

desc "Run Cucumber features"
task :features do
  puts "The bundled Cucumber Rake task is broken with Bundler."
  puts "Invoking Cucumber manually."
  puts
  system("cucumber")
end

require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
  version = File.exist?('VERSION') ? File.read('VERSION') : ""

  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = "cucumber-nagios #{version}"
  rdoc.rdoc_files.include('README*')
  rdoc.rdoc_files.include('lib/**/*.rb')
end


require "rake/clean"
file 'MANIFEST.tmp' do
  # generate manifest from everything checked into git
  # this allows us to ignore things using .gitignore
  sh %{git ls-files > MANIFEST.tmp}
end
CLEAN << 'MANIFEST.tmp'

desc "Check the manifest against current files"
task :check_manifest => [:clean, 'MANIFEST', 'MANIFEST.tmp'] do
  puts `diff -du MANIFEST MANIFEST.tmp`
end

CLEAN << '*.gem'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cucumber-nagios-0.9.2 Rakefile
cucumber-nagios-0.9.0 Rakefile