forked from puppetlabs/hiera-puppet
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Rakefile
35 lines (29 loc) · 957 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
33
34
35
require 'rubygems'
require 'rubygems/package_task'
require 'rspec/core/rake_task'
require 'tasks/release'
spec = Gem::Specification.new do |s|
s.name = "hiera-puppet"
s.version = described_version
s.author = "Puppet Labs"
s.email = "[email protected]"
s.homepage = "https://github.com/puppetlabs/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/**/*.rb"].to_a
s.has_rdoc = true
s.add_dependency 'hiera', '~>0.3.0'
s.executables = "extlookup2hiera"
end
Gem::PackageTask.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]