aptly_cli 0.3.5 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YmE5MmU2N2QxMzViNGU3ZDE3MzFmNjZkZWM0M2NmZmE2ZmRkODAxZQ==
4
+ ZjA1YjM2M2VhNTAwMGJjYjQwZDVlMWY3ZDg2ODdiMDAwN2NjMjdlYg==
5
5
  data.tar.gz: !binary |-
6
- ZDkyODI1MjEwMmRlYjAxZmJkMTE3Y2U0N2M3MTY4NTNhZTU1ODZjZA==
6
+ NjE0YjljY2I2NWNkOGU2NmE4NDgwZTdlNTVmYzdlOWIwMjRiODM1Ng==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NjU4ZjVlZjdmNGNkZTI0NmZhODhlNWRkOTlhM2E0NjY4ZGVjMjBlNGFkMDc3
10
- NjYzYTllNTU3ZGU3Njg3MzllNGJkMDE2ZDM0N2UxYWZjMDczYWM3MGEyYTg5
11
- ZGJhYjg1NTExYzVlYTMzMWM1Y2U2OGM1Yzg2ZTA3NmFmMDY5ZTE=
9
+ NGJmOTA3MGJiYTIwOGEwODM3NTkyNWNiYzI3ODI5ZDE4MjUxZGE1Mjg2MWU0
10
+ NTE5Mzk3ZDM5MzdkNzM3Mjc0YzIxYjRiZjI2OWYyNjM5M2Y2ZDczNGJhMTZi
11
+ YTczYjI2ZTA1NjhlYzczM2VmMDdkZWQwMDM0YzliNjkwMmUyYzY=
12
12
  data.tar.gz: !binary |-
13
- MTdmNmFiMzk4MTlkODNjNDJiYzUwYWIyMWZhM2M3OTU1MjFhNTcxNmJjNGYx
14
- YTkwYzE3YzQ2OTQ4M2Y1NGNhOTRiYzgyYWMwMzAyMWRkYzI1NjIxNmVjOTEw
15
- NGJhOTUzM2EzOGZjYWQ3ZWYzNTVhNTcyMTIwYjIxMmFlMmZlMjE=
13
+ OGM3ZGZkZTI3ZTRmMjYyY2I0OTcxZjNmZGNiZDZmOWZkMmEwYzA2NzA5ZjQx
14
+ ZWY5OGQyNzAxMzk1ODExNWJmZTQyNzE1ZGY3YmRjMjBhZGIzMDc3Mzc0Njg2
15
+ MGNjZDNiODEyZjYwZmFhYWE0ZDdjOTc3MDc5YjkwZmY0MTEwMWU=
@@ -1,3 +1,3 @@
1
1
  module AptlyCli
2
- VERSION = '0.3.5'.freeze
2
+ VERSION = '0.3.6'.freeze
3
3
  end
data/lib/aptly_command.rb CHANGED
@@ -3,28 +3,27 @@ module AptlyCli
3
3
  include HTTMultiParty
4
4
 
5
5
  attr_accessor :config
6
-
7
6
  def initialize(config, options = nil)
8
7
  @config = config
9
8
  options ||= Options.new
10
9
 
11
- if options.respond_to?(:server) && options.server
10
+ if options.server
12
11
  @config[:server] = options.server
13
12
  end
14
13
 
15
- if options.respond_to?(:port) && options.port
14
+ if options.port
16
15
  @config[:port] = options.port
17
16
  end
18
17
 
19
- if options.respond_to?(:username) && options.username
18
+ if options.username
20
19
  @config[:username] = options.username
21
20
  end
22
21
 
23
- if options.respond_to?(:password) && options.password
22
+ if options.password
24
23
  @config[:password] = options.password
25
24
  end
26
25
 
27
- if options.respond_to?(:debug) && options.debug
26
+ if options.debug
28
27
  @config[:debug] = options.debug
29
28
  end
30
29
 
@@ -63,9 +62,7 @@ module AptlyCli
63
62
  end
64
63
  end
65
64
 
66
- if respond_to?(:debug_output)
67
- debug_output $stdout if @config[:debug] == true
68
- end
65
+ self.class.debug_output $stdout if @config[:debug] == true
69
66
  end
70
67
  end
71
68
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aptly_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-23 00:00:00.000000000 Z
11
+ date: 2016-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler