aptly_cli 0.1.9 → 0.2.0

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
- ZDVlN2ExYzI3YTZmOWNlYjZlOTk5ZTAxNTA2NDY4MDk0MjhhNTBiMQ==
4
+ M2Y2ZDhiMjM0ODZhNmI2Y2UxMjQxYTA3MDVkOTkwNGQ4YzFjZTcyNw==
5
5
  data.tar.gz: !binary |-
6
- ODMzYTA5OThiYjhlODhiMjQxMmZhODZmMGIwOGJkOWZkMWFlZmFkNg==
6
+ NWE1ZDM1OGE2ZDI3NjFjZjI4NTk4NWM1NWQyNGRjMjhjYzZkMDhkYQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YTM5YTA3N2FmYzliODkyMjI4MzQzNDJiMGEzZGQ2ZGI0YzUxN2VjMmIzMjI2
10
- ZDlmODQzNjlhYmY5ZTY2ZDc0OTRhMDVkY2VkMGRkNzUxM2YwMTA4MGUxMWE2
11
- YmI2OWE3MWViOGJlYWNhOTExOGRkNzE4OGY1NjAwNDc3NDJhNjk=
9
+ YWJiYWRhNjE5YjVhZWU3MzU1NjMwMDJlYTJkZDExZmY5NDc5NjYxYmJjYTk4
10
+ Njc1ZGRjMjIyYWMzZDY3MzM1MDg1ZWVkNTkzNThmYjU3ODEyMTY5MzI3MWQ1
11
+ OTU4N2U3YWJkMzQwOTlmYmUzNGUwNDY1OGRmMDU4YTcyMTZiY2I=
12
12
  data.tar.gz: !binary |-
13
- OGUxYWZkMjI3Zjk0NmQ1MWUzNDkyZWYyYmJhNmM0NWZmNWMzNWUxMDNmZDNi
14
- YjM5YTBiYzk3ZTY1NmYwNmUyNDBhYWNiZTk1NTdiYTc5M2Q0YmY3NzZmMWUx
15
- ZTA4YzJmZDg0MjI4ZGI5MGQ0MDRhMjA5YzNlMDc4Zjk2Njk0ZmY=
13
+ ZDM3NzY5ZjNkMmYyMjRmMWIyMWRmYjIxNGUxZjI1MjQ4ZDE4MWJiYjJlYTg3
14
+ ODQzMGM3YTg4ZmFiMDdjYmQyNzkxMDVkZDIxZWY1YmIwYzhkMmFjMmQ5YzM5
15
+ YmEzNTdhYzU0YjEwMGM0Nzc5ZWU2YTcxMjk5ZTJhMjMyZWJlMDQ=
data/bin/aptly-cli CHANGED
@@ -217,7 +217,7 @@ command :publish_repo do |c|
217
217
  c.option '--distribution DISTRIBUTION', String, 'Distribution name, if missing aptly would try to guess from sources'
218
218
  c.option '--label LABEL', String, 'value of Label: field in published repository stanza'
219
219
  c.option '--origin ORIGIN', String, 'value of Origin: field in published repository stanza'
220
- c.option '--forceoverwrite FORCEOVERWRITE', String, 'when publishing, overwrite files in pool/ directory without notice'
220
+ c.option '--forceoverwrite', 'when publishing, overwrite files in pool/ directory without notice'
221
221
  c.option '--architectures ARCHITECTURES', String, 'override list of published architectures'
222
222
  c.option '--gpg_skip', 'Don’t sign published repository'
223
223
  c.option '--gpg_batch', 'should be set if passing passphrase'
@@ -244,7 +244,7 @@ command :publish_update do |c|
244
244
  c.option '--prefix PREFIX', String, 'Publishing prefix, default root'
245
245
  c.option '--distribution DISTRIBUTION', String, 'Distribution name'
246
246
  c.option '--snapshots SNAPSHOTS', String, 'When updating published snapshots, list of objects component/name seperated by space'
247
- c.option '--forceoverwrite FORCEOVERWRITE', String, 'When publishing, overwrite files in pool/ directory without notice'
247
+ c.option '--forceoverwrite', 'When publishing, overwrite files in pool/ directory without notice'
248
248
  c.option '--gpg_skip', 'Don’t sign published repository'
249
249
  c.option '--gpg_batch', 'should be set if passing passphrase'
250
250
  c.option '--gpg_key GPGKEY', String, 'gpg key name (local to aptly server/user)'
@@ -1,3 +1,3 @@
1
1
  module AptlyCli
2
- VERSION = "0.1.9"
2
+ VERSION = "0.2.0"
3
3
  end
data/lib/aptly_file.rb CHANGED
@@ -12,6 +12,10 @@ module AptlyCli
12
12
  config = AptlyCli::AptlyLoad.new.configure_with("/etc/aptly-cli.conf")
13
13
  base_uri "http://#{config[:server]}:#{config[:port]}/api"
14
14
 
15
+ if config[:debug] == true
16
+ debug_output $stdout
17
+ end
18
+
15
19
  def initialize(file_uri=nil, package=nil, local_file_path=nil)
16
20
  end
17
21
 
data/lib/aptly_misc.rb CHANGED
@@ -12,6 +12,10 @@ module AptlyCli
12
12
  config = AptlyCli::AptlyLoad.new.configure_with("/etc/aptly-cli.conf")
13
13
  base_uri "http://#{config[:server]}:#{config[:port]}/api"
14
14
 
15
+ if config[:debug] == true
16
+ debug_output $stdout
17
+ end
18
+
15
19
  def get_graph(extension)
16
20
  uri = "/graph.#{extension}"
17
21
  self.class.get(uri)
data/lib/aptly_package.rb CHANGED
@@ -12,6 +12,10 @@ module AptlyCli
12
12
  config = AptlyCli::AptlyLoad.new.configure_with("/etc/aptly-cli.conf")
13
13
  base_uri "http://#{config[:server]}:#{config[:port]}/api"
14
14
 
15
+ if config[:debug] == true
16
+ debug_output $stdout
17
+ end
18
+
15
19
  def package_show(package_key)
16
20
  uri = "/packages/#{package_key}"
17
21
  self.class.get(uri)
data/lib/aptly_publish.rb CHANGED
@@ -12,6 +12,10 @@ module AptlyCli
12
12
  config = AptlyCli::AptlyLoad.new.configure_with("/etc/aptly-cli.conf")
13
13
  base_uri "http://#{config[:server]}:#{config[:port]}/api"
14
14
 
15
+ if config[:debug] == true
16
+ debug_output $stdout
17
+ end
18
+
15
19
  @@available_gpg_options = [ :skip, :batch, :gpgKey, :keyring, :secretKeyring,
16
20
  :passphrase, :passphraseFile ]
17
21
 
@@ -123,7 +127,7 @@ module AptlyCli
123
127
  else
124
128
  uri = uri + "/"
125
129
  end
126
-
130
+
127
131
  uri = uri + "/#{publish_options[:distribution]}"
128
132
 
129
133
  @body_json = @body.to_json
@@ -131,7 +135,5 @@ module AptlyCli
131
135
  self.class.put(uri, :headers => { 'Content-Type'=>'application/json' }, :body => @body_json)
132
136
 
133
137
  end
134
-
135
-
136
138
  end
137
139
  end
data/lib/aptly_repo.rb CHANGED
@@ -12,6 +12,10 @@ module AptlyCli
12
12
  config = AptlyCli::AptlyLoad.new.configure_with("/etc/aptly-cli.conf")
13
13
  base_uri "http://#{config[:server]}:#{config[:port]}/api"
14
14
 
15
+ if config[:debug] == true
16
+ debug_output $stdout
17
+ end
18
+
15
19
  def repo_create(repo_options = {:name => nil, :comment => nil, :DefaultDistribution => nil, :DefaultComponent => nil})
16
20
  uri = "/repos"
17
21
  name = repo_options[:name]
@@ -12,6 +12,10 @@ module AptlyCli
12
12
  config = AptlyCli::AptlyLoad.new.configure_with("/etc/aptly-cli.conf")
13
13
  base_uri "http://#{config[:server]}:#{config[:port]}/api"
14
14
 
15
+ if config[:debug] == true
16
+ debug_output $stdout
17
+ end
18
+
15
19
  def snapshot_delete(name, force=nil)
16
20
  uri = "/snapshots/#{name}"
17
21
 
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.1.9
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-27 00:00:00.000000000 Z
11
+ date: 2015-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler