Check-in [aba2cc5d1e]
Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Add api examples |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
aba2cc5d1ef95ea1565f287520baabf8 |
User & Date: | jls@semicomplete.com 2012-03-01 01:15:41 |
Context
2012-03-01
| ||
01:15 | Add cabin check-in: 17a3243e8f user: jls@semicomplete.com tags: trunk | |
01:15 | Add api examples check-in: aba2cc5d1e user: jls@semicomplete.com tags: trunk | |
01:14 | - Improve package API stuff (add 'converted_from' etc) - Gem to RPM conversions work. Even multiple-composition of gem+gem+gem -> rpm works check-in: 4a6bdf8aa1 user: jls@semicomplete.com tags: trunk | |
Changes
Added examples/api/gem-to-rpm.rb.
> > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 | $: << File.join(File.dirname(__FILE__), "..", "..", "lib") require "fpm" package = FPM::Package::Gem.new package.input(ARGV[0]) rpm = package.convert(FPM::Package::RPM) begin output = "NAME-VERSION.ARCH.rpm" rpm.output(rpm.to_s(output)) ensure rpm.cleanup end |
Added examples/api/multiple-to-rpm.rb.
> > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | $: << File.join(File.dirname(__FILE__), "..", "..", "lib") require "fpm" package = FPM::Package::Gem.new ARGV.each do |gem| name, version = gem.split(/[=]/, 2) package.version = version # Allow specifying a specific version package.input(gem) end rpm = package.convert(FPM::Package::RPM) rpm.name = "rubygem-manythings" rpm.version = "1.0" begin output = "NAME-VERSION.ARCH.rpm" rpm.output(rpm.to_s(output)) ensure rpm.cleanup end |