Check-in [aa11cd5041]
Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | - Add new 'version' info - Make 'fpm --help' report the version as well as some other useful info (fixes #281) |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
aa11cd50417d3e164250d5a3d91db774 |
| User & Date: | jls@semicomplete.com 2012-11-27 05:40:57 |
Context
|
2012-11-27
| ||
| 05:41 | - ignore Gemfile.lock check-in: 3af931ac83 user: jls@semicomplete.com tags: trunk | |
| 05:40 | - Add new 'version' info - Make 'fpm --help' report the version as well as some other useful info (fixes #281) check-in: aa11cd5041 user: jls@semicomplete.com tags: trunk | |
| 04:41 | version numbers can have multiple digits check-in: 5db5e13922 user: jls@semicomplete.com tags: trunk | |
Changes
Changes to fpm.gemspec.
1 2 3 4 5 6 7 8 9 10 11 12 |
Gem::Specification.new do |spec|
files = []
dirs = %w{lib bin templates}
dirs.each do |dir|
files += Dir["#{dir}/**/*"]
end
files << "LICENSE"
files << "CONTRIBUTORS"
files << "CHANGELIST"
spec.name = "fpm"
| > | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
require File.join(File.dirname(__FILE__), "lib/fpm/version")
Gem::Specification.new do |spec|
files = []
dirs = %w{lib bin templates}
dirs.each do |dir|
files += Dir["#{dir}/**/*"]
end
files << "LICENSE"
files << "CONTRIBUTORS"
files << "CHANGELIST"
spec.name = "fpm"
spec.version = FPM::VERSION
spec.summary = "fpm - package building and mangling"
spec.description = "Convert directories, rpms, python eggs, rubygems, and " \
"more to rpms, debs, solaris packages and more. Win at package " \
"management without wasting pointless hours debugging bad rpm specs!"
# For parsing JSON (required for some Python support, etc)
# http://flori.github.com/json/doc/index.html
|
| ︙ | ︙ |
Changes to lib/fpm/command.rb.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
require "rubygems"
require "fpm/namespace"
require "fpm/util"
require "clamp"
require "ostruct"
require "fpm"
require "tmpdir" # for Dir.tmpdir
if $DEBUG
Cabin::Channel.get(Kernel).subscribe($stdout)
Cabin::Channel.get(Kernel).level = :debug
end
Dir[File.join(File.dirname(__FILE__), "package", "*.rb")].each do |plugin|
Cabin::Channel.get(Kernel).info("Loading plugin", :path => plugin)
require plugin
end
# The main fpm command entry point.
class FPM::Command < Clamp::Command
include FPM::Util
option "-t", "OUTPUT_TYPE",
"the type of package you want to create (deb, rpm, solaris, etc)",
:attribute_name => :output_type
option "-s", "INPUT_TYPE",
"the package type to use as input (gem, rpm, python, etc)",
:attribute_name => :input_type
| > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
require "rubygems"
require "fpm/namespace"
require "fpm/version"
require "fpm/util"
require "clamp"
require "ostruct"
require "fpm"
require "tmpdir" # for Dir.tmpdir
if $DEBUG
Cabin::Channel.get(Kernel).subscribe($stdout)
Cabin::Channel.get(Kernel).level = :debug
end
Dir[File.join(File.dirname(__FILE__), "package", "*.rb")].each do |plugin|
Cabin::Channel.get(Kernel).info("Loading plugin", :path => plugin)
require plugin
end
# The main fpm command entry point.
class FPM::Command < Clamp::Command
include FPM::Util
def help(*args)
return [
"Intro:",
"",
" This is fpm version #{FPM::VERSION}",
"",
" If you think something is wrong, it's probably a bug! :)",
" Please file these here: https://github.com/jordansissel/fpm/issues",
"",
" You can find support on irc (#fpm on freenode irc) or via email with",
" fpm-users@googlegroups.com",
"",
# Lastly, include the default help output via Clamp.
super
].join("\n")
end # def help
option "-t", "OUTPUT_TYPE",
"the type of package you want to create (deb, rpm, solaris, etc)",
:attribute_name => :output_type
option "-s", "INPUT_TYPE",
"the package type to use as input (gem, rpm, python, etc)",
:attribute_name => :input_type
|
| ︙ | ︙ |
Added lib/fpm/version.rb.
> > > | 1 2 3 | module FPM VERSION = "0.4.23" end |