Sha256: 720da13c7c4b5e6b7cfa080d32a93f734d3de56e8131cb463d74c0e26242991b

Contents?: true

Size: 620 Bytes

Versions: 9

Compression:

Stored size: 620 Bytes

Contents

require 'rubygems'
require 'cucumber'
require 'cucumber/rake/task'

Cucumber::Rake::Task.new(:"cucumber-chef") do |t|
  feature_dirs = Array.new

  feature_dir_glob = File.join(Dir.pwd, "*cookbook*", "*", "*feature*")
  feature_dirs << Dir.glob(feature_dir_glob)

  feature_dir_glob = File.join(Dir.pwd, "*feature*")
  feature_dirs << Dir.glob(feature_dir_glob)

  opts = [
    "--exclude support/cookbooks",
    "--exclude support/data_bags",
    "--exclude support/environments",
    "--exclude support/keys",
    "--exclude support/roles",
    feature_dirs
  ].flatten.compact.join(" ")

  t.cucumber_opts = opts
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
cucumber-chef-2.1.0.rc.12 lib/cucumber-chef/rake/task.rb
cucumber-chef-2.1.0.rc.11 lib/cucumber-chef/rake/task.rb
cucumber-chef-2.1.0.rc.10 lib/cucumber-chef/rake/task.rb
cucumber-chef-2.1.0.rc.9 lib/cucumber-chef/rake/task.rb
cucumber-chef-2.1.0.rc.8 lib/cucumber-chef/rake/task.rb
cucumber-chef-2.1.0.rc.7 lib/cucumber-chef/rake/task.rb
cucumber-chef-2.1.0.rc.6 lib/cucumber-chef/rake/task.rb
cucumber-chef-2.1.0.rc.5 lib/cucumber-chef/rake/task.rb
cucumber-chef-2.1.0.rc.4 lib/cucumber-chef/rake/task.rb