lib/aptly_publish.rb in aptly_cli-0.4.2 vs lib/aptly_publish.rb in aptly_cli-0.5.0

- old
+ new

@@ -1,15 +1,15 @@ require 'aptly_cli/version' require 'aptly_command' require 'aptly_load' -require 'httmultiparty' +require 'httparty' require 'json' module AptlyCli # :nodoc: class AptlyPublish < AptlyCommand - include HTTMultiParty + include HTTParty @@available_gpg_options = [:skip, :batch, :gpgKey, :keyring, :secretKeyring, :passphrase, :passphraseFile] @@available_options_for_repo = [:distribution, :label, :origin, :forceoverwrite, :architectures] @@ -90,12 +90,12 @@ uri += "/#{publish_options[:prefix]}" if publish_options[:prefix] @body_json = @body.to_json - self.class.post(uri, headers: { 'Content-Type' => 'application/json' }, - body: @body_json) + self.class.post(uri, :headers => { 'Content-Type' => 'application/json' }, + :body => @body_json) end def publish_update(publish_options={}) uri = '/publish' gpg_options = parse_gpg_options(@@available_gpg_options, publish_options) @@ -116,10 +116,10 @@ end uri += "/#{publish_options[:distribution]}" @body_json = @body.to_json - self.class.put(uri, headers: { 'Content-Type' => 'application/json' }, - body: @body_json) + self.class.put(uri, :headers => { 'Content-Type' => 'application/json' }, + :body => @body_json) end end end