stairs-steps-s3 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stairs/steps/s3.rb +17 -3
- data/stairs-steps-s3.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f206df77f83bf2e01938cfd01a7135193f9f8524
|
4
|
+
data.tar.gz: ad633dcf4e5b9580494321511910713c2ba1e03c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b9b83bc364c41e27104aad85afdec9d4ba1b222a362e175f8f15fd925b9180f0b187686b852b92ea2ed6a039b3c1964a32e5b861ec975a24ed2ff382e9c2661
|
7
|
+
data.tar.gz: cd3b9171edc4bdcdcc057247c505e085054a4feec23e82640304d1de79f452b00e18615322e305f2d628fbf31c085a3b0982e07acb8ad946758c3d4da8baa336
|
data/lib/stairs/steps/s3.rb
CHANGED
@@ -7,9 +7,23 @@ module Stairs
|
|
7
7
|
description "Setup AWS and S3 bucket access"
|
8
8
|
|
9
9
|
def run
|
10
|
-
env
|
11
|
-
env
|
12
|
-
env
|
10
|
+
env key_id_name, provide("AWS Access Key ID")
|
11
|
+
env key_secret_name, provide("AWS Secret Access Key")
|
12
|
+
env bucket_name, provide("S3 Bucket name")
|
13
|
+
end
|
14
|
+
|
15
|
+
private
|
16
|
+
|
17
|
+
def key_id_name
|
18
|
+
options[:key_id] || "AWS_ACCESS_KEY_ID"
|
19
|
+
end
|
20
|
+
|
21
|
+
def key_secret_name
|
22
|
+
options[:key_secret] || "AWS_SECRET_ACCESS_KEY"
|
23
|
+
end
|
24
|
+
|
25
|
+
def bucket_name
|
26
|
+
options[:bucket] || "AWS_S3_BUCKET"
|
13
27
|
end
|
14
28
|
end
|
15
29
|
end
|
data/stairs-steps-s3.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "stairs-steps-s3"
|
7
|
-
spec.version = "0.0.
|
7
|
+
spec.version = "0.0.6"
|
8
8
|
spec.authors = ["patbenatar"]
|
9
9
|
spec.email = ["nick@gophilosophie.com"]
|
10
10
|
spec.description = "Stairs plugin for setting up S3"
|