aptly_cli 0.2.1 → 0.2.2
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 +8 -8
- data/README.md +9 -0
- data/lib/aptly_cli/version.rb +1 -1
- data/lib/aptly_file.rb +6 -0
- data/lib/aptly_misc.rb +6 -0
- data/lib/aptly_package.rb +6 -0
- data/lib/aptly_publish.rb +6 -0
- data/lib/aptly_repo.rb +6 -0
- data/lib/aptly_snapshot.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MTI0MjZmMTJlNWVjMTM3ZDc2MjgwNTk3ZWU5NjAwNWUwYTYzODI3MQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MTYyYjgwYTNmYzMwMWU1MGU3Njg2MTJmZDhiZDQ4M2U3NTRmYTE3Zg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTlkYjU3YTYyY2E3NDE5MjBkZmMzM2FhNmZkYjc4ZWE0ZWIwZmRkNGEzMzhl
|
10
|
+
NTM0YTY0MWI4NzJjNWQ4OThlNjEwMzkyOTA1MjNjZDA2ODQzYmE2ZDc1Mzc5
|
11
|
+
NjFiYjY3OWYzMzQ1ZTYyZWU0Njc1MWFiMmIwYTg4YTAyNmQ3NGU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OGQ2OWIzMzE3YTM0MmNhMTJkNjNkZjVkZjFhYTQ3YzY4OGFmM2E3ZTJlZGE3
|
14
|
+
NTAzNTA3NDZmMTJhMjhiZDk2MGY3N2I0NWIzZmVmYjA5NWNmYTcyYmU0ZjVj
|
15
|
+
MjMzNTBlOGNjNDFkNWQ5ZjFjYTk0MzU1MGFmYTczMDdmMWQxNWY=
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# AptlyCli
|
2
2
|
|
3
|
+
[](https://gitter.im/sepulworld/aptly_cli?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
4
|
+
|
3
5
|
[](https://travis-ci.org/sepulworld/aptly_cli)
|
4
6
|
[](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
|
data/lib/aptly_cli/version.rb
CHANGED
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
|
data/lib/aptly_snapshot.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
|
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.
|
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:
|
11
|
+
date: 2016-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|