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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0c3744e4574c8922f3db02b78c7f4ab8f3b0d5bc
4
- data.tar.gz: 19270a36a3a01f55403c5365620c43ebf6b5dd94
3
+ metadata.gz: 8d8f26172301e9ca28b6ccac2be14bf9f05ef973
4
+ data.tar.gz: c38ca8ff67f62909d5414d02650ea71473eac0ed
5
5
  SHA512:
6
- metadata.gz: 2e2879da19f7b9e31eebd95602b6fc195fbbe200a7f1bedb9e0f2b06d62119a51ca9f8d9bd9e17f0d576ff55cdd83124fea26db81d81c19fecb51cb15a23d8b7
7
- data.tar.gz: eae4473b1fc0830b004029912cf64aafe5338f9a5342d1394eb3b3f9885221796b0ea85f4b111c1af7091db6857b1caca4051e1bc316d605c10c9ca7b980d434
6
+ metadata.gz: d01788ccba53d666fd49d9d703ff0cfa7848f546dcd3958b700c3b4b40e5ac78a98bb3928f883869a2786c69fabca65e14c5feddb08512eb92b146acb73d507d
7
+ data.tar.gz: 55dfde32d29864e0e863ba3d6a66f1d0b4ba9030daf10b40ece824f8ba0937e3dd3ff95604f411978d7d43dcba4c26dff1f185263b24213b0ff0ffc0366b9888
@@ -0,0 +1,11 @@
1
+ AllCops:
2
+ Exclude:
3
+ - tmp
4
+ - vendor/**/*
5
+ Documentation:
6
+ Enabled: false
7
+
8
+ LineLength:
9
+ Description: 'Limit lines to a more generous 120 characters.'
10
+ Enabled: true
11
+ Max: 120
@@ -2,3 +2,7 @@ language: ruby
2
2
  rvm:
3
3
  - 2.2.4
4
4
  - 2.1.8
5
+ script:
6
+ - bundle exec rake spec
7
+ - bundle exec rake rubocop
8
+ - bundle exec rake build
data/Rakefile CHANGED
@@ -1,6 +1,9 @@
1
- require "bundler/gem_tasks"
1
+ require 'bundler/gem_tasks'
2
2
  require 'rspec/core/rake_task'
3
+ require 'rubocop/rake_task'
3
4
 
4
5
  RSpec::Core::RakeTask.new(:spec)
5
6
 
7
+ RuboCop::RakeTask.new(:rubocop)
8
+
6
9
  task default: :spec
data/bin/dome CHANGED
@@ -19,7 +19,7 @@ EOS
19
19
  opt :output, 'Print all Terraform output variables'
20
20
  end
21
21
 
22
- Trollop.educate unless opts.has_value?(true)
22
+ Trollop.educate unless opts.value?(true)
23
23
 
24
24
  @dome = Dome::Terraform.new
25
25
  @dome.validate_environment
@@ -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.9'
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.34'
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'
@@ -24,11 +24,9 @@ module Dome
24
24
  end
25
25
 
26
26
  def aws_credentials
27
- begin
28
- @aws_credentials ||= AWS::ProfileParser.new.get(@account)
29
- rescue RuntimeError
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
@@ -25,11 +25,9 @@ module Dome
25
25
  end
26
26
 
27
27
  def create_bucket(name)
28
- begin
29
- s3_client.create_bucket(bucket: name, acl: 'private')
30
- rescue Aws::S3::Errors::BucketAlreadyExists
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)
@@ -1,3 +1,3 @@
1
1
  module Dome
2
- VERSION = '1.6.0'
2
+ VERSION = '1.6.1'.freeze
3
3
  end
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.0
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-09 00:00:00.000000000 Z
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.9'
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.9'
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.34'
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.34'
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