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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 749f6513d50475d95503f1e6deaf545893fb2a22
4
- data.tar.gz: a2d8f02a64d1ff5c17429e88c7e19cef43952b4b
3
+ metadata.gz: 5c585789936116ffa436714037b34c40314c0937
4
+ data.tar.gz: 04c68d2a080bab2620ebe9dde043189d9c7f7aa3
5
5
  SHA512:
6
- metadata.gz: 457867906d2214162998f21d53a0ef32807a8bd803dc918b855b4ff414108be7ccac17a9dfd1a5ab8d0c8a91d2bdc6cf88bec7173c68b723736a350a37c4c700
7
- data.tar.gz: 6341de6d3fa94655bd176f09eda10b670827ffc67e39d864decacd6d32c0dfac5c9449029de6ff06a3ce21fabc1bd17c1e74a6915af9f29c88bf476a7fae1092
6
+ metadata.gz: d8424c0f6a23093048ec4b46342ed0fc88b4b07526167e9ca01ac0d0363688c41cb1f1db75752f316dba5369dafdfeee70d6895b5eb98585df057d86f94e5d38
7
+ data.tar.gz: dc685d6d9cacf371d76a85b9205fb01ea947b38f6ed16e502ab0e59f038967fd5604a03439ec8b44c42f8523eec9421cdfcf8f0b46f2e4c0655075b997662916
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- akashi (0.0.2)
4
+ akashi (0.0.3)
5
5
  activesupport
6
6
  aws-sdk
7
7
  hashie
@@ -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}\"."
@@ -1,3 +1,3 @@
1
1
  module Akashi
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
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.2
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-19 00:00:00.000000000 Z
12
+ date: 2014-06-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport