domed-city 1.6.0 → 1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +11 -0
- data/.travis.yml +4 -0
- data/Rakefile +4 -1
- data/bin/dome +1 -1
- data/dome.gemspec +2 -2
- data/lib/dome/environment.rb +3 -5
- data/lib/dome/state.rb +3 -5
- data/lib/dome/version.rb +1 -1
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d8f26172301e9ca28b6ccac2be14bf9f05ef973
|
4
|
+
data.tar.gz: c38ca8ff67f62909d5414d02650ea71473eac0ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d01788ccba53d666fd49d9d703ff0cfa7848f546dcd3958b700c3b4b40e5ac78a98bb3928f883869a2786c69fabca65e14c5feddb08512eb92b146acb73d507d
|
7
|
+
data.tar.gz: 55dfde32d29864e0e863ba3d6a66f1d0b4ba9030daf10b40ece824f8ba0937e3dd3ff95604f411978d7d43dcba4c26dff1f185263b24213b0ff0ffc0366b9888
|
data/.rubocop.yml
ADDED
data/.travis.yml
CHANGED
data/Rakefile
CHANGED
data/bin/dome
CHANGED
data/dome.gemspec
CHANGED
@@ -17,10 +17,10 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
18
|
spec.require_paths = ['lib']
|
19
19
|
|
20
|
-
spec.add_development_dependency 'bundler', '~> 1.
|
20
|
+
spec.add_development_dependency 'bundler', '~> 1.11'
|
21
21
|
spec.add_development_dependency 'rake', '~> 10.0'
|
22
22
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
23
|
-
spec.add_development_dependency 'rubocop', '~> 0.
|
23
|
+
spec.add_development_dependency 'rubocop', '~> 0.37'
|
24
24
|
|
25
25
|
spec.add_dependency 'trollop', '~> 2.1'
|
26
26
|
spec.add_dependency 'aws-profile_parser', '~> 0.0'
|
data/lib/dome/environment.rb
CHANGED
@@ -24,11 +24,9 @@ module Dome
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def aws_credentials
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
raise "No credentials found for account: '#{@account}'."
|
31
|
-
end
|
27
|
+
@aws_credentials ||= AWS::ProfileParser.new.get(@account)
|
28
|
+
rescue RuntimeError
|
29
|
+
raise "No credentials found for account: '#{@account}'."
|
32
30
|
end
|
33
31
|
|
34
32
|
def populate_aws_access_keys
|
data/lib/dome/state.rb
CHANGED
@@ -25,11 +25,9 @@ module Dome
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def create_bucket(name)
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
raise 'The S3 bucket must be globally unique. See https://docs.aws.amazon.com/AmazonS3/latest/gsg/CreatingABucket.html'.colorize(:red)
|
32
|
-
end
|
28
|
+
s3_client.create_bucket(bucket: name, acl: 'private')
|
29
|
+
rescue Aws::S3::Errors::BucketAlreadyExists
|
30
|
+
raise 'The S3 bucket must be globally unique. See https://docs.aws.amazon.com/AmazonS3/latest/gsg/CreatingABucket.html'.colorize(:red)
|
33
31
|
end
|
34
32
|
|
35
33
|
def enable_bucket_versioning(bucket_name)
|
data/lib/dome/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: domed-city
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Snape
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.11'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.11'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0.
|
61
|
+
version: '0.37'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '0.
|
68
|
+
version: '0.37'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: trollop
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -132,6 +132,7 @@ extra_rdoc_files: []
|
|
132
132
|
files:
|
133
133
|
- ".gitignore"
|
134
134
|
- ".rspec"
|
135
|
+
- ".rubocop.yml"
|
135
136
|
- ".travis.yml"
|
136
137
|
- Gemfile
|
137
138
|
- LICENSE
|