# File lib/pom/commands/gemspec.rb, line 49 def execute if File.exist?(file) and not $FORCE $stderr << "Gemspec already exists. Use --force to overwrite.\n" else yaml = project.to_gemspec.to_yaml File.open(file, 'w') do |f| f << yaml end end end
# File lib/pom/commands/gemspec.rb, line 61 def file project.metadata.name + '.gemspec' end
# File lib/pom/commands/gemspec.rb, line 26 def parse parser = OptionParser.new do |opt| opt.banner = "pom gemspec" opt.on("--force", "-f", "override safe-guarded operations") do $FORCE = true end opt.on("--debug", "run in debug mode, raises exceptions") do $DEBUG = true $VERBOSE = true end opt.on_tail("--help", "-h", "display this help message") do puts opt exit end end parser.parse! end
Generated with the Darkfish Rdoc Generator 2.