Sha256: eb3710a2e962c4c6f04e9b143bb5077e817f582181d20914171d64f048590cd9

Contents?: true

Size: 1.43 KB

Versions: 20

Compression:

Stored size: 1.43 KB

Contents

require 'ftools'

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::PUPPETVERSION
    spec.add_dependency('facter', '>= 1.5.1')
    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|
      File.copy(f,"bin")
    end
end

desc "Create the gem"
task :create_gem => :prepare_gem do
    Dir.mkdir("pkg") rescue nil
    Gem::Builder.new(spec).build
    File.move("puppet-#{Puppet::PUPPETVERSION}.gem", "pkg")
    SBIN.each do |f|
       File.unlink("bin/" + f.gsub(/sbin\//, ''))
    end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
puppet-2.6.18 tasks/rake/gem.rake
puppet-2.6.17 tasks/rake/gem.rake
puppet-2.6.16 tasks/rake/gem.rake
puppet-2.6.15 tasks/rake/gem.rake
puppet-2.6.14 tasks/rake/gem.rake
puppet-2.6.13 tasks/rake/gem.rake
puppet-2.6.12 tasks/rake/gem.rake
puppet-2.6.11 tasks/rake/gem.rake
puppet-2.6.10 tasks/rake/gem.rake
puppet-2.6.9 tasks/rake/gem.rake
puppet-2.6.8 tasks/rake/gem.rake
puppet-2.6.7 tasks/rake/gem.rake
puppet-2.6.6 tasks/rake/gem.rake
puppet-2.6.5 tasks/rake/gem.rake
puppet-2.6.4 tasks/rake/gem.rake
puppet-2.6.3 tasks/rake/gem.rake
puppet-2.6.2 tasks/rake/gem.rake
puppet-2.6.1 tasks/rake/gem.rake
puppet-2.6.0 tasks/rake/gem.rake
puppet-0.25.5 tasks/rake/gem.rake