cp_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: 69772c0c07e3d3deec4ab4f94503bf4a1311e73b
4
- data.tar.gz: 741fda2e0c4a4932b07c2932be3d83d0251ec872
3
+ metadata.gz: 908350a3eec1adc9a7f3c58286abebfaa511e3ea
4
+ data.tar.gz: 98f37821c48575ee6bf1d19351da997302c7566a
5
5
  SHA512:
6
- metadata.gz: 7e2d5b5cb54408ba252e4cb05a8410066cd43f466d702dfb4e6395c3445b23217b028d551478937ba57090367caa11ad22f11f33190add36b3c8aef9b895299c
7
- data.tar.gz: 06dab2ff8c372e9fe1aed8b765de7dab55e14041409f5df490f655753d43d08d7f69ef639837305a8ff46a14fd100ea6db542c130890171cb7a581fa01f6e851
6
+ metadata.gz: d77506d86da9d2928b79f88f213af658381a53a0d489a7c029982b1559ba46829fb8625ac16a9ac922f94789e067f39c0c365db65a295fbca059b176089809ce
7
+ data.tar.gz: c42bb2a49ba712b838627cbb3817b05ee9d0db76e4c3aa4f98d43ef95f9f6815b0517421c1a2de54e9b553594017a10831e5c1f63da229081d1f3ec44d32d08d
@@ -48,9 +48,10 @@ module CpOraclecloud
48
48
 
49
49
  def connection
50
50
  @connection ||= Fog::OracleCloud::Database.new(
51
- :oracle_username => APP_CONFIG[:oracle_username],
52
- :oracle_password => APP_CONFIG[:oracle_password],
53
- :oracle_domain => APP_CONFIG[:oracle_domain],
51
+ :oracle_username => CpOraclecloud::FOG_CONFIG[:oracle_username],
52
+ :oracle_password => CpOraclecloud::FOG_CONFIG[:oracle_password],
53
+ :oracle_domain => CpOraclecloud::FOG_CONFIG[:oracle_domain],
54
+ :oracle_region => CpOraclecloud::FOG_CONFIG[:oracle_region],
54
55
  )
55
56
  end
56
57
 
@@ -44,9 +44,10 @@ module CpOraclecloud
44
44
 
45
45
  def connection
46
46
  @connection ||= Fog::OracleCloud::Java.new(
47
- :oracle_username => APP_CONFIG[:oracle_username],
48
- :oracle_password => APP_CONFIG[:oracle_password],
49
- :oracle_domain => APP_CONFIG[:oracle_domain],
47
+ :oracle_username => CpOraclecloud::FOG_CONFIG[:oracle_username],
48
+ :oracle_password => CpOraclecloud::FOG_CONFIG[:oracle_password],
49
+ :oracle_domain => CpOraclecloud::FOG_CONFIG[:oracle_domain],
50
+ :oracle_region => CpOraclecloud::FOG_CONFIG[:oracle_region],
50
51
  )
51
52
  end
52
53
 
data/config/config.yml ADDED
@@ -0,0 +1,16 @@
1
+ ---
2
+ defaults: &defaults
3
+ oracle_username: cloud.admin
4
+ oracle_password: slacK@5FoLDing
5
+ oracle_domain: gse00000535
6
+ oracle_compute_api: https://api-z11.compute.em2.oraclecloud.com/
7
+ oracle_storage_api: https://gse00000535.storage.oraclecloud.com/v1/Storage-gse00000535
8
+
9
+ development:
10
+ <<: *defaults
11
+
12
+ test:
13
+ <<: *defaults
14
+
15
+ production:
16
+ <<: *defaults
@@ -3,5 +3,6 @@ require "cp_oraclecloud/engine"
3
3
  module CpOraclecloud
4
4
  # Your code goes here...
5
5
 
6
+ FOG_CONFIG = YAML.load_file(File.expand_path "../../config/config.yml", __FILE__)[Rails.env].symbolize_keys!
6
7
 
7
8
  end
@@ -1,3 +1,3 @@
1
1
  module CpOraclecloud
2
- VERSION = '0.1.4'
2
+ VERSION = '0.1.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cp_oraclecloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
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-10-21 00:00:00.000000000 Z
11
+ date: 2016-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -71,6 +71,7 @@ files:
71
71
  - app/views/cp_oraclecloud/database_instances/_show.html.erb
72
72
  - app/views/cp_oraclecloud/java_components/_fields.html.erb
73
73
  - app/views/cp_oraclecloud/java_instances/_show.html.erb
74
+ - config/config.yml
74
75
  - config/routes.rb
75
76
  - lib/cp_oraclecloud.rb
76
77
  - lib/cp_oraclecloud/engine.rb