kumogata2 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -0
- data/kumogata2.gemspec +1 -1
- data/lib/kumogata2/cli/option_parser.rb +8 -1
- data/lib/kumogata2/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a20ce8f85538abf4a52a640ce454dea240eefd95
|
4
|
+
data.tar.gz: 28f68048f36a5ebc83a92cafc99f62320feee33b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53186704e97633e0c5d4bcdc573aadd51d1456eaa7a9e3fd9981a49eb338fd4b8d6fbc2aad202e45efab83809cdf52eec818db652b1b6dd535498dcb8ecf6f17
|
7
|
+
data.tar.gz: 64b9ac0ff90d1a0906d3678d1d8115d648b128d485528b3dd9392ea4b0933d8b3ba6db0e2de3a3c4a3ffa358dce3b9c7bd63ae168fcaf4c83938dd2811ff15f7
|
data/README.md
CHANGED
@@ -74,6 +74,14 @@ Options:
|
|
74
74
|
--[no-]debug
|
75
75
|
```
|
76
76
|
|
77
|
+
### Environment variables
|
78
|
+
|
79
|
+
```sh
|
80
|
+
export AWS_SECRET_ACCESS_KEY=AKIAIOSFODNN7EXAMPLE
|
81
|
+
export AWS_ACCESS_KEY_ID=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
|
82
|
+
export AWS_REGION=us-east-1
|
83
|
+
```
|
84
|
+
|
77
85
|
### Create resources
|
78
86
|
|
79
87
|
$ kumogata2 create template.rb
|
data/kumogata2.gemspec
CHANGED
@@ -29,5 +29,5 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.add_development_dependency 'bundler'
|
30
30
|
spec.add_development_dependency 'rake'
|
31
31
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
32
|
-
spec.add_development_dependency 'kumogata2-plugin-ruby'
|
32
|
+
spec.add_development_dependency 'kumogata2-plugin-ruby', '>= 0.1.3'
|
33
33
|
end
|
@@ -78,7 +78,9 @@ module Kumogata2::CLI
|
|
78
78
|
def parse!(argv)
|
79
79
|
command = nil
|
80
80
|
arguments = nil
|
81
|
-
|
81
|
+
# https://github.com/aws/aws-sdk-ruby/blob/v2.3.11/aws-sdk-core/lib/aws-sdk-core/plugins/regional_endpoint.rb#L18
|
82
|
+
region_keys = %w(AWS_REGION AMAZON_REGION AWS_DEFAULT_REGION)
|
83
|
+
options = {aws: {region: ENV.values_at(*region_keys).compact.first}}
|
82
84
|
|
83
85
|
opt = ::OptionParser.new
|
84
86
|
opt.summary_width = 65535
|
@@ -143,6 +145,11 @@ module Kumogata2::CLI
|
|
143
145
|
|
144
146
|
opt.parse!
|
145
147
|
|
148
|
+
# https://github.com/aws/aws-sdk-ruby/blob/v2.3.11/aws-sdk-core/lib/aws-sdk-core/plugins/regional_endpoint.rb#L29
|
149
|
+
unless options[:aws][:region]
|
150
|
+
raise "missing region; use '--region' option or export region name to ENV['AWS_REGION']"
|
151
|
+
end
|
152
|
+
|
146
153
|
unless (command = argv.shift)
|
147
154
|
puts opt.help
|
148
155
|
exit_parse!(1)
|
data/lib/kumogata2/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kumogata2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Genki Sugawara
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|
@@ -142,14 +142,14 @@ dependencies:
|
|
142
142
|
requirements:
|
143
143
|
- - '>='
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
145
|
+
version: 0.1.3
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - '>='
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
152
|
+
version: 0.1.3
|
153
153
|
description: Kumogata2 is a tool for AWS CloudFormation.
|
154
154
|
email:
|
155
155
|
- sugawara@cookpad.com
|