aptly_cli 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDU1YjE3MjZiMGNiNjllNjE1MWMxZWRkZjcyOTNjMTY4OGI0NzU5ZQ==
4
+ MTI0MjZmMTJlNWVjMTM3ZDc2MjgwNTk3ZWU5NjAwNWUwYTYzODI3MQ==
5
5
  data.tar.gz: !binary |-
6
- NTYwMDA0NDIyNzBmMzFhNGUwOWQwMDNhMTgwYWQ4ODQxYjQ5ZWI1ZQ==
6
+ MTYyYjgwYTNmYzMwMWU1MGU3Njg2MTJmZDhiZDQ4M2U3NTRmYTE3Zg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NDI1NTdlMTc5NGM3MjVjMDI1YWEwNDNkMzljZmZhOTVjM2ZjZGIyNjk2NzBm
10
- YjBjZGRiNmM3M2YyYjc5ZmQ1NDIwMjdmZTY3NzMxMmY0NzJhYzg1NjY2NGQ3
11
- NTljMWNmNzMyMTAxYTMwYTYzYTU5MzA4OWY1MjViYmY4NmI1Zjk=
9
+ NTlkYjU3YTYyY2E3NDE5MjBkZmMzM2FhNmZkYjc4ZWE0ZWIwZmRkNGEzMzhl
10
+ NTM0YTY0MWI4NzJjNWQ4OThlNjEwMzkyOTA1MjNjZDA2ODQzYmE2ZDc1Mzc5
11
+ NjFiYjY3OWYzMzQ1ZTYyZWU0Njc1MWFiMmIwYTg4YTAyNmQ3NGU=
12
12
  data.tar.gz: !binary |-
13
- NzI0MjAxZjgxMjg1YmQ4M2VlZjgxNDk3MjkwMTc4ZTExODQ3ZGYwY2FmZDc5
14
- ZmQxMjljMjhhMjUxMjMwNzkxNjI2ZDcyNDk5ZGE1ODkzMzQxMzA5NWY3NDAz
15
- ZWJjYjZiZjVlZDcxM2JjNDBkYWUxNDcwYjNkMzllOWU0Y2JkOTc=
13
+ OGQ2OWIzMzE3YTM0MmNhMTJkNjNkZjVkZjFhYTQ3YzY4OGFmM2E3ZTJlZGE3
14
+ NTAzNTA3NDZmMTJhMjhiZDk2MGY3N2I0NWIzZmVmYjA5NWNmYTcyYmU0ZjVj
15
+ MjMzNTBlOGNjNDFkNWQ5ZjFjYTk0MzU1MGFmYTczMDdmMWQxNWY=
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # AptlyCli
2
2
 
3
+ [![Join the chat at https://gitter.im/sepulworld/aptly_cli](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/sepulworld/aptly_cli?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
4
+
3
5
  [![Build Status](https://travis-ci.org/sepulworld/aptly_cli.svg)](https://travis-ci.org/sepulworld/aptly_cli)
4
6
  [![Gem Version](https://badge.fury.io/rb/aptly_cli.svg)](http://badge.fury.io/rb/aptly_cli)
5
7
 
@@ -28,6 +30,13 @@ Create a configuration file with aptly server and port, /etc/aptly-cli.conf (YAM
28
30
  :port: 8082
29
31
  :debug: false
30
32
 
33
+ If you use Basic Authentication to protect your API, add username and password:
34
+
35
+ :username: api-user
36
+ :password: api-password
37
+
38
+ Also make sure that your config file isn't world readable (```chmod o-rw /etc/aptly-cli.conf```)
39
+
31
40
  If a configuration file is not found the defaults in the example configuration file above will be used
32
41
 
33
42
  ## Usage - available aptly-cli commands
@@ -1,3 +1,3 @@
1
1
  module AptlyCli
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
data/lib/aptly_file.rb CHANGED
@@ -12,6 +12,12 @@ 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[:username]
16
+ if config[:password]
17
+ basic_auth "#{config[:username]}", "#{config[:password]}"
18
+ end
19
+ end
20
+
15
21
  if config[:debug] == true
16
22
  debug_output $stdout
17
23
  end
data/lib/aptly_misc.rb CHANGED
@@ -12,6 +12,12 @@ 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[:username]
16
+ if config[:password]
17
+ basic_auth "#{config[:username]}", "#{config[:password]}"
18
+ end
19
+ end
20
+
15
21
  if config[:debug] == true
16
22
  debug_output $stdout
17
23
  end
data/lib/aptly_package.rb CHANGED
@@ -12,6 +12,12 @@ 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[:username]
16
+ if config[:password]
17
+ basic_auth "#{config[:username]}", "#{config[:password]}"
18
+ end
19
+ end
20
+
15
21
  if config[:debug] == true
16
22
  debug_output $stdout
17
23
  end
data/lib/aptly_publish.rb CHANGED
@@ -12,6 +12,12 @@ 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[:username]
16
+ if config[:password]
17
+ basic_auth "#{config[:username]}", "#{config[:password]}"
18
+ end
19
+ end
20
+
15
21
  if config[:debug] == true
16
22
  debug_output $stdout
17
23
  end
data/lib/aptly_repo.rb CHANGED
@@ -12,6 +12,12 @@ 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[:username]
16
+ if config[:password]
17
+ basic_auth "#{config[:username]}", "#{config[:password]}"
18
+ end
19
+ end
20
+
15
21
  if config[:debug] == true
16
22
  debug_output $stdout
17
23
  end
@@ -12,6 +12,12 @@ 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[:username]
16
+ if config[:password]
17
+ basic_auth "#{config[:username]}", "#{config[:password]}"
18
+ end
19
+ end
20
+
15
21
  if config[:debug] == true
16
22
  debug_output $stdout
17
23
  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.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-02 00:00:00.000000000 Z
11
+ date: 2016-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler