lib/aptly_publish.rb in aptly_cli-0.1.9 vs lib/aptly_publish.rb in aptly_cli-0.2.0

- old
+ new

@@ -10,10 +10,14 @@ # Load aptly-cli.conf and establish base_uri config = AptlyCli::AptlyLoad.new.configure_with("/etc/aptly-cli.conf") base_uri "http://#{config[:server]}:#{config[:port]}/api" + if config[:debug] == true + debug_output $stdout + end + @@available_gpg_options = [ :skip, :batch, :gpgKey, :keyring, :secretKeyring, :passphrase, :passphraseFile ] @@available_options_for_repo = [ :distribution, :label, :origin, :forceoverwrite, :architectures, ] @@available_options_for_update = [ :prefix, :distribution, :forceoverwrite, ] @@ -121,17 +125,15 @@ if publish_options[:prefix] uri = uri + "/#{publish_options[:prefix]}" else uri = uri + "/" end - + uri = uri + "/#{publish_options[:distribution]}" @body_json = @body.to_json self.class.put(uri, :headers => { 'Content-Type'=>'application/json' }, :body => @body_json) end - - end end