Sha256: 6e6e9325715bf5f0651f86c29614cb2beee6f44844cd4ac13a8d18953a75aa8d
Contents?: true
Size: 832 Bytes
Versions: 1
Compression:
Stored size: 832 Bytes
Contents
require 'rbconfig' class GepettoGenerator < RubiGen::Base def initialize(runtime_args, runtime_options = {}) super usage if args.empty? @destination_root = File.expand_path(args.shift) end def manifest script_options = { :chmod => 0755 } record do |m| # Root directory and all subdirectories. m.directory '' %w{script config manifests files templates tasks}.each { |path| m.directory path } m.template_copy_each %w( Rakefile ) m.template_copy_each %w( site.pp templates.pp nodes.pp ), 'manifests' m.template_copy_each %w( puppet.conf fileserver.conf ), 'config' m.template_copy_each %w( puppetmasterd puppetca puppetrun module ), 'script', script_options m.dependency "install_rubigen_scripts", [destination_root, "puppet"] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
albanpeignier-gepetto-0.0.3 | app_generators/gepetto/gepetto_generator.rb |