bin/aptly-cli in aptly_cli-0.5.0 vs bin/aptly-cli in aptly_cli-0.6.0

- old
+ new

@@ -113,11 +113,10 @@ c.option '--name NAME', String, 'Local repository name, required' c.option '--comment COMMENT', String, 'Text describing local repository for the user' c.option '--default_distribution DISTRIBUTION', String, 'Default distribution when publishing from this local repo' c.option '--default_component COMPONENT', String, 'Default component when publishing from this local repo' c.action do |args, options| - puts options.name config = AptlyCli::AptlyLoad.new.configure_with($config_file) handle_global_options options aptly_command = AptlyCli::AptlyRepo.new(config, options) repo_options = { :name => options.name.to_s, :comment => options.comment.to_s, @@ -164,10 +163,10 @@ repo_options = { :DefaultComponent => options.default_component.to_s } end if options.comment repo_options = { :Comment => options.comment.to_s } end - puts aptly_command.repo_edit(options.name.to_s, repo_options) + puts aptly_command.repo_edit(options.name.to_s, repo_options || {}) end end command :repo_list do |c| c.syntax = 'aptly-cli repo_list [options]'