Check-in [18904f1b71]
Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Add empty source, -s empty |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
18904f1b71c55aa4cd06852a1541a223 |
| User & Date: | pranay.kanwar@gmail.com 2013-02-11 13:31:03 |
Context
|
2013-02-11
| ||
| 21:51 | Merge pull request #359 from r4um/allow_empty_source Closes #349 Add empty source, -s empty. check-in: a6848d22e1 user: jls@semicomplete.com tags: trunk | |
| 13:31 | Add empty source, -s empty check-in: 18904f1b71 user: pranay.kanwar@gmail.com tags: trunk | |
|
2013-02-09
| ||
| 22:58 | - Folks gettin' angry about an abandoned prototype they mistook for functioning and supported code, so let's delete this 'fpm-npm' hackery. Someone will write proper npm package support for fpm eventually. check-in: 9cef77c028 user: jls@semicomplete.com tags: trunk | |
Changes
Changes to lib/fpm/command.rb.
| ︙ | ︙ | |||
487 488 489 490 491 492 493 |
end
end
if @command.inputs
mandatory(@command.input_type == "dir", "--inputs is only valid with -s dir")
end
| | | 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 |
end
end
if @command.inputs
mandatory(@command.input_type == "dir", "--inputs is only valid with -s dir")
end
mandatory(@command.args.any? || @command.inputs || @command.input_type == 'empty',
"No parameters given. You need to pass additional command " \
"arguments so that I know what you want to build packages " \
"from. For example, for '-s dir' you would pass a list of " \
"files and directories. For '-s gem' you would pass a one" \
" or more gems to package from. As a full example, this " \
"will make an rpm of the 'json' rubygem: " \
"`fpm -s gem -t rpm json`")
|
| ︙ | ︙ |
Added lib/fpm/package/empty.rb.
> > > > > > > | 1 2 3 4 5 6 7 | require "fpm/package" require "backports" # Empty Package type. For strict/meta/virtual package creation class FPM::Package::Empty < FPM::Package end |