auxesis-cucumber-nagios 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +10 -2
- metadata +1 -1
data/Rakefile
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
require 'rubygems'
|
4
|
+
require 'fileutils'
|
4
5
|
|
5
6
|
begin
|
6
7
|
require 'cucumber/rake/task'
|
7
8
|
|
8
9
|
Cucumber::Rake::Task.new do |t|
|
9
|
-
t.
|
10
|
-
t.cucumber_opts = "--require bin/common.rb --format Nagios::NagiosFormatter"
|
10
|
+
t.cucumber_opts = "--require features/"
|
11
11
|
end
|
12
12
|
rescue LoadError
|
13
13
|
end
|
@@ -16,4 +16,12 @@ end
|
|
16
16
|
desc "build gem"
|
17
17
|
task :build do
|
18
18
|
system("gem build cucumber-nagios.gemspec")
|
19
|
+
|
20
|
+
FileUtils.mkdir_p('pkg')
|
21
|
+
puts
|
22
|
+
Dir.glob("cucumber-nagios-*.gem").each do |gem|
|
23
|
+
dest = File.join('pkg', gem)
|
24
|
+
FileUtils.mv(gem, dest)
|
25
|
+
puts "New gem in #{dest}"
|
26
|
+
end
|
19
27
|
end
|