cp_oraclecloud 0.1.9 → 0.1.10
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 +4 -4
- data/README.md +118 -46
- data/app/controllers/cp_oraclecloud/compute_components_controller.rb +8 -8
- data/app/controllers/cp_oraclecloud/compute_instances_controller.rb +5 -5
- data/app/controllers/cp_oraclecloud/database_components_controller.rb +8 -8
- data/app/controllers/cp_oraclecloud/database_instances_controller.rb +11 -11
- data/app/controllers/cp_oraclecloud/java_components_controller.rb +8 -8
- data/app/controllers/cp_oraclecloud/java_instances_controller.rb +5 -5
- data/app/controllers/cp_oraclecloud/soa_components_controller.rb +8 -8
- data/app/controllers/cp_oraclecloud/soa_instances_controller.rb +5 -5
- data/app/controllers/cp_oraclecloud/ssh_keys_controller.rb +68 -68
- data/app/models/cp_oraclecloud/compute_component.rb +44 -44
- data/app/models/cp_oraclecloud/compute_instance.rb +55 -55
- data/app/models/cp_oraclecloud/database_component.rb +41 -41
- data/app/models/cp_oraclecloud/database_instance.rb +55 -55
- data/app/models/cp_oraclecloud/java_component.rb +78 -78
- data/app/models/cp_oraclecloud/java_instance.rb +55 -55
- data/app/models/cp_oraclecloud/soa_component.rb +58 -58
- data/app/models/cp_oraclecloud/soa_instance.rb +55 -55
- data/app/models/cp_oraclecloud/ssh_key.rb +61 -61
- data/app/policies/cp_oraclecloud/compute_component_policy.rb +4 -4
- data/app/policies/cp_oraclecloud/compute_instance_policy.rb +4 -4
- data/app/policies/cp_oraclecloud/database_component_policy.rb +4 -4
- data/app/policies/cp_oraclecloud/database_instance_policy.rb +4 -4
- data/app/policies/cp_oraclecloud/java_component_policy.rb +4 -4
- data/app/policies/cp_oraclecloud/java_instance_policy.rb +4 -4
- data/app/policies/cp_oraclecloud/soa_component_policy.rb +4 -4
- data/app/policies/cp_oraclecloud/soa_instance_policy.rb +4 -4
- data/app/policies/cp_oraclecloud/ssh_key_policy.rb +25 -25
- data/app/views/cp_oraclecloud/compute_components/_fields.html.erb +4 -4
- data/app/views/cp_oraclecloud/compute_instances/_show.html.erb +8 -8
- data/app/views/cp_oraclecloud/database_components/_fields.html.erb +11 -11
- data/app/views/cp_oraclecloud/database_instances/_show.html.erb +112 -112
- data/app/views/cp_oraclecloud/java_components/_fields.html.erb +67 -67
- data/app/views/cp_oraclecloud/java_instances/_show.html.erb +36 -36
- data/app/views/cp_oraclecloud/soa_components/_fields.html.erb +36 -36
- data/app/views/cp_oraclecloud/soa_instances/_show.html.erb +8 -8
- data/app/views/cp_oraclecloud/ssh_keys/_form.html.erb +8 -8
- data/app/views/cp_oraclecloud/ssh_keys/edit.html.erb +3 -3
- data/app/views/cp_oraclecloud/ssh_keys/index.html.erb +33 -33
- data/app/views/cp_oraclecloud/ssh_keys/new.html.erb +3 -3
- data/app/views/products/_cp_oraclecloud_component_menu.html.erb +17 -17
- data/config/routes.rb +22 -22
- data/lib/cp_oraclecloud.rb +21 -23
- data/lib/cp_oraclecloud/compute_mixin.rb +7 -7
- data/lib/cp_oraclecloud/database_mixin.rb +26 -26
- data/lib/cp_oraclecloud/engine.rb +4 -0
- data/lib/cp_oraclecloud/java_mixin.rb +27 -27
- data/lib/cp_oraclecloud/soa_mixin.rb +13 -13
- data/lib/cp_oraclecloud/version.rb +3 -3
- metadata +15 -15
@@ -1,27 +1,27 @@
|
|
1
|
-
module CpOraclecloud
|
2
|
-
module JavaMixin
|
3
|
-
def calculate_monthly_cost(config)
|
4
|
-
if %w(oc3 oc4 oc5 oc6).include? config['shape']
|
5
|
-
# General Compute
|
6
|
-
rates = CpOraclecloud.rate_card[:java]['general']
|
7
|
-
else
|
8
|
-
# High Memory
|
9
|
-
rates = CpOraclecloud.rate_card[:java]['high']
|
10
|
-
end
|
11
|
-
case config['edition']
|
12
|
-
when 'SE'
|
13
|
-
edition_rate = rates['standard']
|
14
|
-
when 'EE'
|
15
|
-
edition_rate = rates['enterprise']
|
16
|
-
when 'Suite'
|
17
|
-
edition_rate = rates['suite']
|
18
|
-
end
|
19
|
-
if config['subscription_type'] == 'MONTHLY' then cost = edition_rate['monthly']
|
20
|
-
else cost = 30 * 24 * edition_rate['hourly'] end
|
21
|
-
cost = cost * config['num_nodes'].to_f
|
22
|
-
cost
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
|
-
|
1
|
+
module CpOraclecloud
|
2
|
+
module JavaMixin
|
3
|
+
def calculate_monthly_cost(config)
|
4
|
+
if %w(oc3 oc4 oc5 oc6).include? config['shape']
|
5
|
+
# General Compute
|
6
|
+
rates = CpOraclecloud.rate_card[:java]['general']
|
7
|
+
else
|
8
|
+
# High Memory
|
9
|
+
rates = CpOraclecloud.rate_card[:java]['high']
|
10
|
+
end
|
11
|
+
case config['edition']
|
12
|
+
when 'SE'
|
13
|
+
edition_rate = rates['standard']
|
14
|
+
when 'EE'
|
15
|
+
edition_rate = rates['enterprise']
|
16
|
+
when 'Suite'
|
17
|
+
edition_rate = rates['suite']
|
18
|
+
end
|
19
|
+
if config['subscription_type'] == 'MONTHLY' then cost = edition_rate['monthly']
|
20
|
+
else cost = 30 * 24 * edition_rate['hourly'] end
|
21
|
+
cost = cost * config['num_nodes'].to_f
|
22
|
+
cost
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
|
@@ -1,13 +1,13 @@
|
|
1
|
-
module CpOraclecloud
|
2
|
-
module SoaMixin
|
3
|
-
def calculate_monthly_cost(config)
|
4
|
-
cost = 0
|
5
|
-
if config['topology'] == 'mft' then cost = CpOraclecloud.rate_card[:soa]['mft']
|
6
|
-
elsif config['topology'] == 'apim' then cost = CpOraclecloud.rate_card[:soa]['api']
|
7
|
-
else cost = CpOraclecloud.rate_card[:soa]['full'] end
|
8
|
-
cost
|
9
|
-
end
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
|
1
|
+
module CpOraclecloud
|
2
|
+
module SoaMixin
|
3
|
+
def calculate_monthly_cost(config)
|
4
|
+
cost = 0
|
5
|
+
if config['topology'] == 'mft' then cost = CpOraclecloud.rate_card[:soa]['mft']
|
6
|
+
elsif config['topology'] == 'apim' then cost = CpOraclecloud.rate_card[:soa]['api']
|
7
|
+
else cost = CpOraclecloud.rate_card[:soa]['full'] end
|
8
|
+
cost
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
|
@@ -1,3 +1,3 @@
|
|
1
|
-
module CpOraclecloud
|
2
|
-
VERSION = '0.1.
|
3
|
-
end
|
1
|
+
module CpOraclecloud
|
2
|
+
VERSION = '0.1.10'
|
3
|
+
end
|
metadata
CHANGED
@@ -1,47 +1,47 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cp_oraclecloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel Nation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 5.0.0
|
20
|
-
- -
|
20
|
+
- - '>='
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 5.0.0.1
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: 5.0.0
|
30
|
-
- -
|
30
|
+
- - '>='
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 5.0.0.1
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: sqlite3
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- -
|
37
|
+
- - '>='
|
38
38
|
- !ruby/object:Gem::Version
|
39
39
|
version: '0'
|
40
40
|
type: :development
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
|
-
- -
|
44
|
+
- - '>='
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '0'
|
47
47
|
description: Plugin for Cloud_Portal to add support for the Oracle Cloud Platform
|
@@ -51,9 +51,6 @@ executables: []
|
|
51
51
|
extensions: []
|
52
52
|
extra_rdoc_files: []
|
53
53
|
files:
|
54
|
-
- MIT-LICENSE
|
55
|
-
- README.md
|
56
|
-
- Rakefile
|
57
54
|
- app/assets/config/cp_oraclecloud_manifest.js
|
58
55
|
- app/controllers/cp_oraclecloud/compute_components_controller.rb
|
59
56
|
- app/controllers/cp_oraclecloud/compute_instances_controller.rb
|
@@ -96,14 +93,17 @@ files:
|
|
96
93
|
- app/views/cp_oraclecloud/ssh_keys/new.html.erb
|
97
94
|
- app/views/products/_cp_oraclecloud_component_menu.html.erb
|
98
95
|
- config/routes.rb
|
99
|
-
- lib/cp_oraclecloud.rb
|
100
96
|
- lib/cp_oraclecloud/compute_mixin.rb
|
101
97
|
- lib/cp_oraclecloud/database_mixin.rb
|
102
98
|
- lib/cp_oraclecloud/engine.rb
|
103
99
|
- lib/cp_oraclecloud/java_mixin.rb
|
104
100
|
- lib/cp_oraclecloud/soa_mixin.rb
|
105
101
|
- lib/cp_oraclecloud/version.rb
|
102
|
+
- lib/cp_oraclecloud.rb
|
106
103
|
- lib/tasks/cp_oraclecloud_tasks.rake
|
104
|
+
- MIT-LICENSE
|
105
|
+
- Rakefile
|
106
|
+
- README.md
|
107
107
|
homepage: http://github.com/Joelith
|
108
108
|
licenses:
|
109
109
|
- MIT
|
@@ -114,17 +114,17 @@ require_paths:
|
|
114
114
|
- lib
|
115
115
|
required_ruby_version: !ruby/object:Gem::Requirement
|
116
116
|
requirements:
|
117
|
-
- -
|
117
|
+
- - '>='
|
118
118
|
- !ruby/object:Gem::Version
|
119
119
|
version: '0'
|
120
120
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- -
|
122
|
+
- - '>='
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
requirements: []
|
126
126
|
rubyforge_project:
|
127
|
-
rubygems_version: 2.
|
127
|
+
rubygems_version: 2.0.14.1
|
128
128
|
signing_key:
|
129
129
|
specification_version: 4
|
130
130
|
summary: Plugin for Cloud_Portal to add support for the Oracle Cloud Platform
|