Skip to content

Commit

Permalink
Convert option.snapshots to Hash before passing to publish_update (#147)
Browse files Browse the repository at this point in the history
* Convert option.snapshots to Hash before passing to publish_update

* Add example for updating published snapshots
  • Loading branch information
SHyx0rmZ authored and sepulworld committed Sep 16, 2016
1 parent 97074b5 commit 617e599
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions bin/aptly-cli
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,10 @@ command :publish_update do |c|
c.summary = 'Update published repository'
c.description = 'Update published repository. If local repository has been published, published repository would be updated to match local repository contents. If snapshots have been been published, it is possible to switch each component to new snapshot'
c.example 'description', 'aptly-cli publish_update --forceoverwrite --distribution precise'
c.example 'update snapshot', 'aptly-cli publish_update --snapshots testrepo_single_snap_to_pub,main --prefix . --distribution=precise --gpg_skip'
c.option '--prefix PREFIX', String, 'Publishing prefix, default root'
c.option '--distribution DISTRIBUTION', String, 'Distribution name'
c.option '--snapshots SNAPSHOTS', String, 'When updating published snapshots, list of objects component/name seperated by space'
c.option '--snapshots SNAPSHOTS', Array, 'When updating published snapshots, list of objects component/name seperated by space'
c.option '--forceoverwrite', 'When publishing, overwrite files in pool/ directory without notice'
c.option '--gpg_skip', 'Don’t sign published repository'
c.option '--gpg_batch', 'should be set if passing passphrase'
Expand All @@ -339,7 +340,7 @@ command :publish_update do |c|
:skip => options.gpg_skip, :batch => options.gpg_batch, :gpgKey => options.gpg_key,
:keyring => options.gpg_keyring, :secretKeyring => options.gpg_secret_keyring,
:passphrase => options.gpg_passphrase, :passphraseFile => options.gpg_passphrase_file,
:snapshots => options.snapshots})
:snapshots => Hash[*options.snapshots]})
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/aptly_cli/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module AptlyCli
VERSION = '0.3.9'.freeze
VERSION = '0.3.10'.freeze
end

0 comments on commit 617e599

Please sign in to comment.