Sha256: bc3ec3392daa69424dd56f6988b08e145d42a826260912cd68b84fd4f210fbc8
Contents?: true
Size: 1.57 KB
Versions: 2
Compression:
Stored size: 1.57 KB
Contents
require 'fileutils' require 'puppet/version' GEM_FILES = FileList[ '[A-Z]*', 'install.rb', 'bin/**/*', 'lib/**/*', 'conf/**/*', 'man/**/*', 'examples/**/*', 'ext/**/*', 'tasks/**/*', 'test/**/*', 'spec/**/*' ] EXECUTABLES = FileList[ 'bin/**/*', 'sbin/**/*' ] SBIN = Dir.glob("sbin/*") spec = Gem::Specification.new do |spec| spec.platform = Gem::Platform::RUBY spec.name = 'puppet' spec.files = GEM_FILES.to_a spec.executables = EXECUTABLES.gsub(/sbin\/|bin\//, '').to_a spec.version = Puppet.version spec.add_dependency('facter', '>= 1.6.11') spec.add_dependency('hiera', '>= 1.0.0rc') spec.add_dependency('hiera-puppet', '>= 1.0.0rc') spec.summary = 'Puppet, an automated configuration management tool' spec.description = 'Puppet, an automated configuration management tool' spec.author = 'Puppet Labs' spec.email = 'puppet@puppetlabs.com' spec.homepage = 'http://puppetlabs.com' spec.rubyforge_project = 'puppet' spec.has_rdoc = true spec.rdoc_options << '--title' << 'Puppet - Configuration Management' << '--main' << 'README' << '--line-numbers' end desc "Prepare binaries for gem creation" task :prepare_gem do SBIN.each do |f| FileUtils.copy(f,"bin") end end desc "Create the gem" task :gem => :prepare_gem do Dir.mkdir("pkg") rescue nil Gem::Builder.new(spec).build FileUtils.move("puppet-#{Puppet.version}.gem", "pkg") SBIN.each do |f| fn = f.gsub(/sbin\/(.*)/, '\1') FileUtils.rm_r "bin/" + fn end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
puppet-3.0.0.rc5 | tasks/rake/gem.rake |
puppet-3.0.0.rc4 | tasks/rake/gem.rake |