Sha256: 21b8dbafd0e08f7e40abba41d76a2be38f4656c6957fc28d25837ee0252cc70d
Contents?: true
Size: 979 Bytes
Versions: 1
Compression:
Stored size: 979 Bytes
Contents
#!/usr/bin/env ruby $:.unshift File.expand_path('../../lib', __FILE__) require 'rubygems' unless Object.const_defined?(:Gem) require 'rake' require 'peony' # Intercept: if invoked as 'peony --help', don't let it pass through Rake, or else # we'll see the Rake help screen. Redirect it to 'peony help'. if ARGV.delete('--help') || ARGV.delete('-h') ARGV << 'help' end if ARGV.delete('--version') || ARGV.delete('-V') puts "Peony, version v#{Peony::Version}" exit end if ARGV.delete('--simulate') || ARGV.delete('-S') ENV['simulate'] = '1' end Rake.application.instance_eval do standard_exception_handling do init 'peony' @rakefiles += ['Peonyfile', 'peonyfile'] options.rakelib += ["recipes/**"] # Load the Peony DSL. require 'peony/rake' load_rakefile Dir.glob(File.expand_path("../recipes/**/*.rake", __dir__)) do|fn| load fn end require 'peony/parse_arguments' top_level end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
peony-0.1.6 | bin/peony |