akashi 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/akashi/rds/db_instance.rb +8 -4
- data/lib/akashi/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c585789936116ffa436714037b34c40314c0937
|
4
|
+
data.tar.gz: 04c68d2a080bab2620ebe9dde043189d9c7f7aa3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8424c0f6a23093048ec4b46342ed0fc88b4b07526167e9ca01ac0d0363688c41cb1f1db75752f316dba5369dafdfeee70d6895b5eb98585df057d86f94e5d38
|
7
|
+
data.tar.gz: dc685d6d9cacf371d76a85b9205fb01ea947b38f6ed16e502ab0e59f038967fd5604a03439ec8b44c42f8523eec9421cdfcf8f0b46f2e4c0655075b997662916
|
data/Gemfile.lock
CHANGED
@@ -6,9 +6,8 @@ module Akashi
|
|
6
6
|
|
7
7
|
class << self
|
8
8
|
def create(security_group:)
|
9
|
-
password = random_password(10)
|
10
|
-
|
11
|
-
response = Akashi::Aws.rds.client.create_db_instance(
|
9
|
+
password = Akashi.manifest.rds.password || random_password(10)
|
10
|
+
options = {
|
12
11
|
db_name: Akashi.name(separator: "_"),
|
13
12
|
db_instance_identifier: Akashi.name,
|
14
13
|
allocated_storage: Akashi.manifest.rds.allocated_storage,
|
@@ -23,7 +22,12 @@ module Akashi
|
|
23
22
|
engine_version: Akashi.manifest.rds.engine_version,
|
24
23
|
auto_minor_version_upgrade: true,
|
25
24
|
publicly_accessible: false,
|
26
|
-
|
25
|
+
}
|
26
|
+
if !!Akashi.manifest.rds.parameter_group_name
|
27
|
+
options.merge!(db_parameter_group_name: Akashi.manifest.rds.parameter_group_name)
|
28
|
+
end
|
29
|
+
|
30
|
+
response = Akashi::Aws.rds.client.create_db_instance(options)
|
27
31
|
|
28
32
|
new(response[:db_instance_identifier]).tap do |instance|
|
29
33
|
puts "Created a RDS (#{instance.id}). Password is \"#{password}\"."
|
data/lib/akashi/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: akashi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- asonas
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-06-
|
12
|
+
date: 2014-06-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|