rake-cloudformation 1 → 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.
- data/.gitignore +1 -0
- data/lib/rake/cloud_formation.rb +1 -17
- data/rake-cloudformation.gemspec +1 -1
- metadata +3 -2
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
*.gem
|
data/lib/rake/cloud_formation.rb
CHANGED
@@ -66,25 +66,9 @@ module Rake
|
|
66
66
|
end
|
67
67
|
|
68
68
|
def cf(region)
|
69
|
-
AWS.config(
|
70
|
-
:access_key_id => access_key_id,
|
71
|
-
:secret_access_key => secret_access_key,
|
72
|
-
:region => region
|
73
|
-
)
|
69
|
+
AWS.config(:region => region)
|
74
70
|
AWS::CloudFormation.new
|
75
71
|
end
|
76
|
-
|
77
|
-
def access_key_id
|
78
|
-
credential_file_hash['AWKAccessKeyId']
|
79
|
-
end
|
80
|
-
|
81
|
-
def secret_access_key
|
82
|
-
credential_file_hash['AWSSecretKey']
|
83
|
-
end
|
84
|
-
|
85
|
-
def credential_file_hash
|
86
|
-
Hash[*File.read(ENV['AWS_CREDENTIAL_FILE']).split(/[=\n]/)]
|
87
|
-
end
|
88
72
|
end
|
89
73
|
end
|
90
74
|
|
data/rake-cloudformation.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake-cloudformation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '
|
4
|
+
version: '2'
|
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:
|
12
|
+
date: 2015-02-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aws-sdk
|
@@ -34,6 +34,7 @@ executables: []
|
|
34
34
|
extensions: []
|
35
35
|
extra_rdoc_files: []
|
36
36
|
files:
|
37
|
+
- .gitignore
|
37
38
|
- Gemfile
|
38
39
|
- lib/rake/cloud_formation.rb
|
39
40
|
- rake-cloudformation.gemspec
|