fog-oraclecloud 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3700003cc43c40fe91ac8153c9fe4da5bc069b30
|
|
4
|
+
data.tar.gz: c89e1f6a29d3a9b55bf82403da31ba0aeaaee355
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a451d4b549101b765d7fe0caf826007a60546e3dddc37adb47b85513ab3aa0893699b25c32585a78ef980d44b1d8c4bd8b5ed0925461c74e3f98322571e30f42
|
|
7
|
+
data.tar.gz: b273ad4f94437ce9e1a798d65a983abb29a543e9f3033ee82db169b597431cc58e7fc2ae125d0f6fcbf25704ce40d2d7a9c7f62d66aae1be6d3e4554a5fc5211
|
|
@@ -105,10 +105,12 @@ module Fog
|
|
|
105
105
|
value = 'yes'
|
|
106
106
|
elsif value == false || value.nil?
|
|
107
107
|
value = 'no'
|
|
108
|
+
end
|
|
109
|
+
if %w(yes no).include? value then
|
|
110
|
+
attributes[:failover_database]=value
|
|
108
111
|
else
|
|
109
|
-
raise ArgumentError, "Invalid failover database value
|
|
112
|
+
raise ArgumentError, "Invalid failover database value"
|
|
110
113
|
end
|
|
111
|
-
attributes[:failover_database] = value
|
|
112
114
|
end
|
|
113
115
|
|
|
114
116
|
def is_rac=(value)
|
|
@@ -116,10 +118,12 @@ module Fog
|
|
|
116
118
|
value = 'yes'
|
|
117
119
|
elsif value == false || value.nil?
|
|
118
120
|
value = 'no'
|
|
121
|
+
end
|
|
122
|
+
if %w(yes no).include? value then
|
|
123
|
+
attributes[:is_rac]=value
|
|
119
124
|
else
|
|
120
|
-
raise ArgumentError, "Invalid is_rac value
|
|
125
|
+
raise ArgumentError, "Invalid is_rac value"
|
|
121
126
|
end
|
|
122
|
-
attributes[:is_rac]=value
|
|
123
127
|
end
|
|
124
128
|
|
|
125
129
|
def ncharset=(value)
|
|
@@ -122,6 +122,7 @@ module Fog
|
|
|
122
122
|
end
|
|
123
123
|
|
|
124
124
|
def num_nodes=(value)
|
|
125
|
+
if value.nil? then value = 1 end
|
|
125
126
|
if [1, 2, 4, 8].include? value then
|
|
126
127
|
attributes[:num_nodes]=value
|
|
127
128
|
else
|
|
@@ -176,7 +177,7 @@ module Fog
|
|
|
176
177
|
private
|
|
177
178
|
|
|
178
179
|
def create
|
|
179
|
-
requires :service_name, :dba_name, :dba_password, :db_service_name, :shape, :version, :ssh_key
|
|
180
|
+
requires :service_name, :dba_name, :dba_password, :db_service_name, :shape, :version, :ssh_key, :admin_password
|
|
180
181
|
|
|
181
182
|
#data = service.create_instance(service_name, cloud_storage_container, cloud_storage_user, cloud_storage_password, dba_name, dba_password, db_servicename, shape, version, vm_public_key,
|
|
182
183
|
# :level => level,
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fog-oraclecloud
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Joel Nation
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-10-
|
|
11
|
+
date: 2016-10-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|