forked from puppetlabs/hiera-puppet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
32 lines (28 loc) · 919 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
require 'rubygems'
require 'rake/gempackagetask'
require 'rspec/core/rake_task'
spec = Gem::Specification.new do |s|
s.name = "hiera-puppet"
s.version = "0.2.0"
s.author = "R.I.Pienaar"
s.email = "[email protected]"
s.homepage = "https://github.com/ripienaar/hiera-puppet"
s.platform = Gem::Platform::RUBY
s.summary = "Puppet query interface and backend for Hiera"
s.description = "Store and query Hiera data from Puppet"
s.files = FileList["{bin,lib}/**/*"].to_a
s.require_path = "lib"
s.test_files = FileList["spec/**/*test.rb"].to_a
s.has_rdoc = true
s.add_dependency 'hiera', '~>0.2.0'
s.executables = "extlookup2hiera"
end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.need_tar = true
end
desc "Run all specs"
RSpec::Core::RakeTask.new(:test) do |t|
t.pattern = 'spec/**/*_spec.rb'
t.rspec_opts = File.read("spec/spec.opts").chomp || ""
end
task :default => [:test, :repackage]