bin/aptly-cli in aptly_cli-0.2.2 vs bin/aptly-cli in aptly_cli-0.2.3
- old
+ new
@@ -181,12 +181,12 @@
command :publish_drop do |c|
c.syntax = 'aptly-cli publish_drop [options]'
c.summary = 'Delete published repository, clean up files in published directory.'
c.description = 'Delete published repository'
c.example 'Delete publish repository called ', 'aptly-cli repo_list'
- c.option '--prefix', String, 'prefix, optional'
- c.option '--distribution', String, 'distribution'
+ c.option '--prefix PREFIX', String, 'prefix, optional'
+ c.option '--distribution DISTRIBUTION', String, 'distribution'
c.option '--force', 'force published repository removal even if component cleanup fails'
c.action do |args, options|
aptly_command = AptlyCli::AptlyPublish.new
puts aptly_command.publish_drop({ :prefix => options.prefix, :distribution => options.distribution, :force => options.force })
end
@@ -212,10 +212,11 @@
c.example 'description', 'aptly-cli publish_repo --sourcekind snapshot --name precise/rocksoftware300 --label test_snap'
c.example 'description', 'aptly-cli publish_repo --sourcekind snapshot --name precise/rocksoftware300 --origin testorigin'
c.example 'publish repo with signing keyring', 'aptly-cli publish_repo --sourcekind snapshot --name precise/rocksoftware300 --origin testorigin --gpg_keyring /etc/apt/trustdb.gpg'
c.option '--name NAME', String, 'Local repository name with optional component, required'
c.option '--sourcekind SOURCEKIND', String, 'Local for local repositories and snapshot for snapshots, required'
+ c.option '--prefix PREFIX', String, 'prefix'
c.option '--distribution DISTRIBUTION', String, 'Distribution name, if missing aptly would try to guess from sources'
c.option '--label LABEL', String, 'value of Label: field in published repository stanza'
c.option '--origin ORIGIN', String, 'value of Origin: field in published repository stanza'
c.option '--forceoverwrite', 'when publishing, overwrite files in pool/ directory without notice'
c.option '--architectures ARCHITECTURES', String, 'override list of published architectures'
@@ -226,11 +227,12 @@
c.option '--gpg_secret_keyring GPGSECRET', String, 'gpg secret keyring filename (local to aptly server/user)'
c.option '--gpg_passphrase GPGPASS', String, 'gpg key passphrase (if using over http, would be transmitted in clear text!)'
c.option '--gpg_passphrase_file GPGPASSFILE', String, 'gpg passphrase file (local to aptly server/user)'
c.action do |args, options|
aptly_command = AptlyCli::AptlyPublish.new
- puts aptly_command.publish_repo(options.name, { :sourcekind => options.sourcekind, :label => options.label, :distribution => options.distribution,
+ puts aptly_command.publish_repo(options.name, { :sourcekind => options.sourcekind, :prefix => options.prefix,
+ :label => options.label, :distribution => options.distribution,
:origin => options.origin, :forceoverwrite => options.forceoverwrite,
:architectures => options.architectures, :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 })
end
@@ -238,10 +240,10 @@
command :publish_update do |c|
c.syntax = 'aptly-cli publish_update [options]'
c.summary = '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.description = 'Update published repository'
- c.example 'description', 'aptly-cli publish_update --sourcekind snapshot --name precise/rocksoftware300 --origin testorigin'
+ c.example 'description', 'aptly-cli publish_update --forceoverwrite --distribution precise'
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 '--forceoverwrite', 'When publishing, overwrite files in pool/ directory without notice'
c.option '--gpg_skip', 'Don’t sign published repository'