deb-s3 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -0
- data/lib/deb/s3.rb +1 -1
- data/lib/deb/s3/cli.rb +7 -1
- metadata +2 -18
data/README.md
CHANGED
@@ -71,6 +71,7 @@ Options:
|
|
71
71
|
# Default: $AMAZON_ACCESS_KEY_ID
|
72
72
|
[--secret-key=SECRET_KEY] # The secret key for connecting to S3.
|
73
73
|
# Default: $AMAZON_SECRET_ACCESS_KEY
|
74
|
+
[--endpoint=AWS_ENDPOINT] # The aws region endpoint for connecting to S3.
|
74
75
|
[--sign=SIGN] # Sign the Release file. Use --sign with your key ID to use a specific key.
|
75
76
|
-p, [--preserve-versions] # Whether to preserve other versions of a package in the repository when uploading one.
|
76
77
|
|
data/lib/deb/s3.rb
CHANGED
data/lib/deb/s3/cli.rb
CHANGED
@@ -48,9 +48,12 @@ class Deb::S3::CLI < Thor
|
|
48
48
|
:default => "$AMAZON_SECRET_ACCESS_KEY",
|
49
49
|
:type => :string,
|
50
50
|
:desc => "The secret key for connecting to S3."
|
51
|
+
|
52
|
+
option :endpoint,
|
53
|
+
:type => :string,
|
54
|
+
:desc => "The region endpoint for connecting to S3."
|
51
55
|
|
52
56
|
option :sign,
|
53
|
-
:default => "",
|
54
57
|
:type => :string,
|
55
58
|
:desc => "Sign the Release file. Use --sign with your key ID to use " +
|
56
59
|
"a specific key."
|
@@ -109,6 +112,9 @@ class Deb::S3::CLI < Thor
|
|
109
112
|
:access_key_id => access_key,
|
110
113
|
:secret_access_key => secret_key
|
111
114
|
)
|
115
|
+
if options[:endpoint]
|
116
|
+
AWS::S3::DEFAULT_HOST.replace options[:endpoint]
|
117
|
+
end
|
112
118
|
|
113
119
|
log("Retrieving existing manifests")
|
114
120
|
release = Deb::S3::Release.retrieve(options[:codename])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deb-s3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-06-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
@@ -43,22 +43,6 @@ dependencies:
|
|
43
43
|
- - ~>
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: 0.6.3
|
46
|
-
- !ruby/object:Gem::Dependency
|
47
|
-
name: rake
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
|
-
requirements:
|
51
|
-
- - ! '>='
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: '0'
|
54
|
-
type: :development
|
55
|
-
prerelease: false
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
|
-
requirements:
|
59
|
-
- - ! '>='
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
46
|
description: Easily create and manage an APT repository on S3.
|
63
47
|
email: ken@invalidlogic.com
|
64
48
|
executables:
|