cp_oraclecloud 0.1.5 → 0.1.6
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 +47 -28
- data/app/models/cp_oraclecloud/database_instance.rb +4 -4
- data/app/models/cp_oraclecloud/java_instance.rb +4 -4
- data/lib/cp_oraclecloud/version.rb +1 -1
- data/lib/cp_oraclecloud.rb +15 -8
- metadata +1 -2
- data/config/config.yml +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36a27e1af21d54d1f83ca6190db9ce407b878eda
|
4
|
+
data.tar.gz: 113d8143e91e87e460dcaae82ef5694a0ca7e821
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6d61a028824e981d7b7e5b1fbc9e9cfc5db91fdaf5fbf40c4d9fafab8102e870382b5a7b5bdbf0679fbff53159c989d70d7a7effb3642789c355ba3dbb94de9
|
7
|
+
data.tar.gz: 430121df514ab69f2fd2d2676ed51bbb994b6e25dd6112959a336b63507d1c071b9ed8b527c25c712866363aa13b14b087eb3d88ae37ae0669c7b35d7768120e
|
data/README.md
CHANGED
@@ -1,28 +1,47 @@
|
|
1
|
-
# CpOraclecloud
|
2
|
-
Short description and motivation.
|
3
|
-
|
4
|
-
## Usage
|
5
|
-
How to use my plugin.
|
6
|
-
|
7
|
-
## Installation
|
8
|
-
Add this line to your application's Gemfile:
|
9
|
-
|
10
|
-
```ruby
|
11
|
-
gem 'cp_oraclecloud'
|
12
|
-
```
|
13
|
-
|
14
|
-
And then execute:
|
15
|
-
```bash
|
16
|
-
$ bundle
|
17
|
-
```
|
18
|
-
|
19
|
-
Or install it yourself as:
|
20
|
-
```bash
|
21
|
-
$ gem install cp_oraclecloud
|
22
|
-
```
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
1
|
+
# CpOraclecloud
|
2
|
+
Short description and motivation.
|
3
|
+
|
4
|
+
## Usage
|
5
|
+
How to use my plugin.
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
Add this line to your application's Gemfile:
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
gem 'cp_oraclecloud'
|
12
|
+
```
|
13
|
+
|
14
|
+
And then execute:
|
15
|
+
```bash
|
16
|
+
$ bundle
|
17
|
+
```
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
```bash
|
21
|
+
$ gem install cp_oraclecloud
|
22
|
+
```
|
23
|
+
You need to add some configuration options to a yml file for this plugin to correctly connect to the Cloud Platform. To do so, add the following to config/config.yml:
|
24
|
+
|
25
|
+
```yaml
|
26
|
+
---
|
27
|
+
defaults: &defaults
|
28
|
+
oracle_username: <username>
|
29
|
+
oracle_password: <password>
|
30
|
+
oracle_domain: <identity domain>
|
31
|
+
oracle_compute_api: <compute api>
|
32
|
+
oracle_region: <region, remove for us data centre>
|
33
|
+
oracle_storage_api: <storage api>
|
34
|
+
development:
|
35
|
+
<<: *defaults
|
36
|
+
|
37
|
+
test:
|
38
|
+
<<: *defaults
|
39
|
+
|
40
|
+
production:
|
41
|
+
<<: *defaults
|
42
|
+
```
|
43
|
+
## Contributing
|
44
|
+
Contribution directions go here.
|
45
|
+
|
46
|
+
## License
|
47
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
@@ -48,10 +48,10 @@ module CpOraclecloud
|
|
48
48
|
|
49
49
|
def connection
|
50
50
|
@connection ||= Fog::OracleCloud::Database.new(
|
51
|
-
:oracle_username => CpOraclecloud
|
52
|
-
:oracle_password => CpOraclecloud
|
53
|
-
:oracle_domain => CpOraclecloud
|
54
|
-
:oracle_region => CpOraclecloud
|
51
|
+
:oracle_username => CpOraclecloud.username,
|
52
|
+
:oracle_password => CpOraclecloud.password,
|
53
|
+
:oracle_domain => CpOraclecloud.domain,
|
54
|
+
:oracle_region => CpOraclecloud.region
|
55
55
|
)
|
56
56
|
end
|
57
57
|
|
@@ -44,10 +44,10 @@ module CpOraclecloud
|
|
44
44
|
|
45
45
|
def connection
|
46
46
|
@connection ||= Fog::OracleCloud::Java.new(
|
47
|
-
:oracle_username => CpOraclecloud
|
48
|
-
:oracle_password => CpOraclecloud
|
49
|
-
:oracle_domain => CpOraclecloud
|
50
|
-
:oracle_region => CpOraclecloud
|
47
|
+
:oracle_username => CpOraclecloud.username,
|
48
|
+
:oracle_password => CpOraclecloud.password,
|
49
|
+
:oracle_domain => CpOraclecloud.domain,
|
50
|
+
:oracle_region => CpOraclecloud.region
|
51
51
|
)
|
52
52
|
end
|
53
53
|
|
data/lib/cp_oraclecloud.rb
CHANGED
@@ -1,8 +1,15 @@
|
|
1
|
-
require "cp_oraclecloud/engine"
|
2
|
-
|
3
|
-
module CpOraclecloud
|
4
|
-
# Your code goes here...
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
1
|
+
require "cp_oraclecloud/engine"
|
2
|
+
|
3
|
+
module CpOraclecloud
|
4
|
+
# Your code goes here...
|
5
|
+
mattr_accessor :username
|
6
|
+
mattr_accessor :password
|
7
|
+
mattr_accessor :domain
|
8
|
+
mattr_accessor :compute_api
|
9
|
+
mattr_accessor :storage_api
|
10
|
+
mattr_accessor :region
|
11
|
+
|
12
|
+
def self.setup
|
13
|
+
yield self
|
14
|
+
end
|
15
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel Nation
|
@@ -71,7 +71,6 @@ 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
|
75
74
|
- config/routes.rb
|
76
75
|
- lib/cp_oraclecloud.rb
|
77
76
|
- lib/cp_oraclecloud/engine.rb
|
data/config/config.yml
DELETED
@@ -1,16 +0,0 @@
|
|
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
|