aptly_cli 0.2.8 → 0.2.9

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
- ZmFmYjZhZjI1NzkxYjg5YTRlYjI3MjZhZTcyYzgxZWVkYjk3M2JlNQ==
4
+ MGQ1MWI0M2I3NGRmZDU1NDZlOTIwZWI4N2JlN2VlZThlMjhiZDdlZQ==
5
5
  data.tar.gz: !binary |-
6
- YjZhMjRjYjcyNmNhYjhiYTgyNzRhZGI4ODRhOGI1YWJjYTE4NjdhOQ==
6
+ NTdjODhiYTBjOGRjNjYyZmJhZjgyN2U4ZWEzYzJkYmUzMjVkOTA2Ng==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjYzOWYyOWY2OWRjOTg2MGVkNzM0ZGJiM2VmNmE3ZDA0NTRjYTc5ODZjYzBl
10
- NmU0OGYzN2ZiYjA4NTc0NTdiM2JkNDAwMTFkYTUxYTA2N2I3OTZjMGNiY2Y2
11
- YTY3YzQwOGZjZjJjYjBhNmM4Y2Q3NjBmNjgxZjM4OGFkODEyZWM=
9
+ MmRiMjMzYTc1NTg2NjE3MjdmMjRkMjI2ZmMzOWE3YjU2ZTljZjAwZDI0MWM1
10
+ OWRiYjM4ZGY5YTQ4YzRjODRhNzdiNzQzYjJlOTg0ZWMwOWE2YTI0MDhhNjNk
11
+ ZDUxYWU4NDQ4ZTI2NDhjYmQ2MDA1MGEyNzI0ZmUwNjUwNzAyYzE=
12
12
  data.tar.gz: !binary |-
13
- YTEyNjU1MDc2ZTljZTA1OTFiMjIyMzBjNDYwZjJlMTYzNjFkZjg2NjIwYWYy
14
- MzIwN2Y5ZjU5NDI0ODBmYWE2NTY0ZGNiZjJkZjExOGE0ODU2ZDdkMWE4ZDZi
15
- NGM0MTU5NjcyMjhmYzY2YmI5MmY2YTZiM2Q4ZDdlN2EyZjg2N2E=
13
+ ZTE1MTQwOTNhMjU3NmUwY2I5M2FkYzgzMDgyMzQ4MWU4YTNiOWRiZDA4NWVm
14
+ MWRlOGNjMTcxNmNkMTgzNjkyN2MxMTAwYzgwZWE2NjhkNDcxMzU4MGVlYzhm
15
+ ZTZmODE5MzlhYmVlMzQwNTRkM2M5ZjQ2OGIwZTY5ZDdhYjYxY2E=
@@ -6,7 +6,7 @@ services:
6
6
  - docker
7
7
 
8
8
  before_install:
9
- - rake docker_build
9
+ - rake docker_pull
10
10
  - rake docker_run
11
11
  - docker ps -a
12
12
 
data/README.md CHANGED
@@ -25,6 +25,7 @@ Or install it yourself as:
25
25
  Create a configuration file with aptly server and port, /etc/aptly-cli.conf (YAML syntax):
26
26
 
27
27
  ---
28
+ :proto: http
28
29
  :server: 127.0.0.1
29
30
  :port: 8082
30
31
  :debug: false
data/Rakefile CHANGED
@@ -16,6 +16,16 @@ task :docker_build do
16
16
  sh %{docker build -t sepulworld/aptly_api .}
17
17
  end
18
18
 
19
+ desc "Push Docker image to Docker Hub"
20
+ task :docker_push do
21
+ sh %{docker push sepulworld/aptly_api}
22
+ end
23
+
24
+ desc "Pull Docker image to Docker Hub"
25
+ task :docker_pull do
26
+ sh %{docker pull sepulworld/aptly_api}
27
+ end
28
+
19
29
  desc "List Docker Aptly running containers"
20
30
  task :docker_list_aptly do
21
31
  sh %{docker ps --filter ancestor='sepulworld/aptly_api' --format="{{.ID}}"}
@@ -1,3 +1,3 @@
1
1
  module AptlyCli
2
- VERSION = '0.2.8'.freeze
2
+ VERSION = '0.2.9'.freeze
3
3
  end
@@ -10,7 +10,7 @@ module AptlyCli
10
10
 
11
11
  # Load aptly-cli.conf and establish base_uri
12
12
  @config = AptlyCli::AptlyLoad.new.configure_with('/etc/aptly-cli.conf')
13
- base_uri "http://#{@config[:server]}:#{@config[:port]}/api"
13
+ base_uri "#{@config[:proto]}://#{@config[:server]}:#{@config[:port]}/api"
14
14
 
15
15
  if @config[:username]
16
16
  if @config[:password]
@@ -15,6 +15,7 @@ module AptlyCli
15
15
 
16
16
  # Configuration defaults
17
17
  @config = {
18
+ proto: 'http',
18
19
  server: '127.0.0.1',
19
20
  port: 8082
20
21
  }
@@ -10,7 +10,7 @@ module AptlyCli
10
10
 
11
11
  # Load aptly-cli.conf and establish base_uri
12
12
  @config = AptlyCli::AptlyLoad.new.configure_with('/etc/aptly-cli.conf')
13
- base_uri "http://#{@config[:server]}:#{@config[:port]}/api"
13
+ base_uri "#{@config[:proto]}://#{@config[:server]}:#{@config[:port]}/api"
14
14
 
15
15
  if @config[:username]
16
16
  if @config[:password]
@@ -10,7 +10,7 @@ module AptlyCli
10
10
 
11
11
  # Load aptly-cli.conf and establish base_uri
12
12
  @config = AptlyCli::AptlyLoad.new.configure_with('/etc/aptly-cli.conf')
13
- base_uri "http://#{@config[:server]}:#{@config[:port]}/api"
13
+ base_uri "#{@config[:proto]}://#{@config[:server]}:#{@config[:port]}/api"
14
14
 
15
15
  if @config[:username]
16
16
  if @config[:password]
@@ -10,7 +10,7 @@ module AptlyCli
10
10
 
11
11
  # Load aptly-cli.conf and establish base_uri
12
12
  @config = AptlyCli::AptlyLoad.new.configure_with('/etc/aptly-cli.conf')
13
- base_uri "http://#{@config[:server]}:#{@config[:port]}/api"
13
+ base_uri "#{@config[:proto]}://#{@config[:server]}:#{@config[:port]}/api"
14
14
 
15
15
  if @config[:username]
16
16
  if @config[:password]
@@ -9,7 +9,7 @@ module AptlyCli
9
9
  include HTTMultiParty
10
10
  # Load aptly-cli.conf and establish base_uri
11
11
  @config = AptlyCli::AptlyLoad.new.configure_with('/etc/aptly-cli.conf')
12
- base_uri "http://#{@config[:server]}:#{@config[:port]}/api"
12
+ base_uri "#{@config[:proto]}://#{@config[:server]}:#{@config[:port]}/api"
13
13
 
14
14
  if @config[:username]
15
15
  if @config[:password]
@@ -10,7 +10,7 @@ module AptlyCli
10
10
 
11
11
  # Load aptly-cli.conf and establish base_uri
12
12
  @config = AptlyCli::AptlyLoad.new.configure_with('/etc/aptly-cli.conf')
13
- base_uri "http://#{@config[:server]}:#{@config[:port]}/api"
13
+ base_uri "#{@config[:proto]}://#{@config[:server]}:#{@config[:port]}/api"
14
14
 
15
15
  if @config[:username]
16
16
  if @config[:password]
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.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-12 00:00:00.000000000 Z
11
+ date: 2016-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler