Sha256: daef36a267e33efabed75cf61c860921ad1e3018cee4d6faa28b247b8bac49bd

Contents?: true

Size: 560 Bytes

Versions: 10

Compression:

Stored size: 560 Bytes

Contents

#!/usr/bin/env ruby

unless ARGV[0]
  puts "Usage: #{__FILE__} <feature>"
  exit 99
end

__DIR__ = File.expand_path(File.dirname(__FILE__))

feature = ARGV[0]
unless File.exists?(feature)
  feature = File.join(__DIR__, '..', 'features', ARGV[0]) 
end

unless File.exist?(feature)
  puts "Error: feature file doesn't exist!"
  exit 98
end

command = "#{__DIR__}/cucumber"
command += " --require #{__DIR__}/common.rb"
command += " --require features/"
command += " --format Nagios::NagiosFormatter"
command += " #{feature}"

system(command) ? exit(0) : exit(2)

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
auxesis-cucumber-nagios-0.3.1 lib/generators/project/bin/cucumber-nagios
auxesis-cucumber-nagios-0.3.4 lib/generators/project/bin/cucumber-nagios
auxesis-cucumber-nagios-0.3.5 lib/generators/project/bin/cucumber-nagios
auxesis-cucumber-nagios-0.3.6 lib/generators/project/bin/cucumber-nagios
auxesis-cucumber-nagios-0.3.7 lib/generators/project/bin/cucumber-nagios
auxesis-cucumber-nagios-0.3.8 lib/generators/project/bin/cucumber-nagios
auxesis-cucumber-nagios-0.4.0 lib/generators/project/bin/cucumber-nagios
auxesis-cucumber-nagios-0.4.1 lib/generators/project/bin/cucumber-nagios
auxesis-cucumber-nagios-0.4.3 lib/generators/project/bin/cucumber-nagios
auxesis-cucumber-nagios-0.4.4 lib/generators/project/bin/cucumber-nagios