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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 14e867d7b1184e63775940569781eb493269864a
4
- data.tar.gz: 85afd5b6c6a5fdb7a7877fedabe32b3c13e20512
3
+ metadata.gz: f206df77f83bf2e01938cfd01a7135193f9f8524
4
+ data.tar.gz: ad633dcf4e5b9580494321511910713c2ba1e03c
5
5
  SHA512:
6
- metadata.gz: b1f58984495ae8176ae4b1a13b872e535d5190651907d50d820338d7ec56ff1b9ef0e7321b7e2ba33edcb6192ae48eb58fb8d4d934ec48335f024e74f3efe161
7
- data.tar.gz: cf2fdcbf3f262cd65b9a906d2866c240a8c280c1cb794c4fa80fe0b604b6b14a177baa896fd696bcd148ab34b869bd282875ed3c719a4534f89fc4ca938f677a
6
+ metadata.gz: 9b9b83bc364c41e27104aad85afdec9d4ba1b222a362e175f8f15fd925b9180f0b187686b852b92ea2ed6a039b3c1964a32e5b861ec975a24ed2ff382e9c2661
7
+ data.tar.gz: cd3b9171edc4bdcdcc057247c505e085054a4feec23e82640304d1de79f452b00e18615322e305f2d628fbf31c085a3b0982e07acb8ad946758c3d4da8baa336
@@ -7,9 +7,23 @@ module Stairs
7
7
  description "Setup AWS and S3 bucket access"
8
8
 
9
9
  def run
10
- env "AWS_ACCESS_KEY_ID", provide("AWS Access Key ID")
11
- env "AWS_SECRET_ACCESS_KEY", provide("AWS Secret Access Key")
12
- env "AWS_S3_BUCKET", provide("S3 Bucket name")
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
@@ -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.5"
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"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stairs-steps-s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - patbenatar