e81a45ee00
Without this patch it is inconvenient to use the functions included in stdlib in a development setting. The Puppet modulepath must be explicitly set for the functions to be automatically loaded. This patch addresses the problem by adding a gem specification and dependency Gemfile. This makes it possible to directly use stdlib and all of the components it depends upon, like so: $ bundle install --path .bundle/gems/ $ bundle exec puppet apply -e 'notice count([1, 2, 3])' The first command will install all of the dependencies, including Puppet and Facter, into the local project directory. The second command will make stdlib avaialable as a Gem, which will be picked up by Puppet since (#7788) was merged into Puppet in the 3.0 release.
22 lines
537 B
Ruby
22 lines
537 B
Ruby
source "https://rubygems.org"
|
|
|
|
group :development do
|
|
gem 'watchr'
|
|
end
|
|
|
|
group :development, :test do
|
|
gem 'rake'
|
|
gem 'puppetmodule-stdlib', ">= 1.0.0", :path => File.expand_path("..", __FILE__)
|
|
gem 'rspec', "~> 2.11.0", :require => false
|
|
gem 'mocha', "~> 0.10.5", :require => false
|
|
gem 'puppetlabs_spec_helper', :require => false
|
|
gem 'rspec-puppet', :require => false
|
|
end
|
|
|
|
if puppetversion = ENV['PUPPET_GEM_VERSION']
|
|
gem 'puppet', puppetversion, :require => false
|
|
else
|
|
gem 'puppet', :require => false
|
|
end
|
|
|
|
# vim:ft=ruby
|