civo 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/civo/ip.rb +12 -0
- data/lib/civo/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9a6634d24bda2a5d8b56b1071558e6fd378d3b1
|
4
|
+
data.tar.gz: 9641d3cea1f8e69cc2806d3003597dad0d1758d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fda150096d6a5edc8c9265e376a3acafc45e5fc6841614698fe8fa4f9f75eb641aa359fff8c329608112d7cd78a619d6ede5b3673da11413f03efefda5b87e32
|
7
|
+
data.tar.gz: 32f5d6cfefdb0044044c3c44de10d4f639daa58952fcf7232ceaf32e610fcf657f32eabb1bffc0a8946b31b06db080ece7ad2a9a9e66a2e7ed505cec188d2e25
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module Civo
|
2
|
+
class Ip < Base
|
3
|
+
get :for_instance, "/v1/instances/:id/ip", requires: [:id],
|
4
|
+
fake: [ { "private_ip": "10.0.0.1" }, { "private_ip": "10.0.0.1", "public_ip": "31.28.96.101" }]
|
5
|
+
post :create, "/v1/instances/:id/ip", requires: [:id],
|
6
|
+
fake: { "result": "ok" }
|
7
|
+
delete :remove, "/v1/instances/:id/ip/:ip_address", requires: [:id, :ip_address],
|
8
|
+
fake: { "result": "ok" }
|
9
|
+
put :connect, "/v1/instances/:id/ip/:ip_address", requires: [:id, :ip_address],
|
10
|
+
fake: { "result": "ok" }
|
11
|
+
end
|
12
|
+
end
|
data/lib/civo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: civo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Jeffries
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: flexirest
|
@@ -65,6 +65,7 @@ files:
|
|
65
65
|
- app/models/civo/account.rb
|
66
66
|
- app/models/civo/base.rb
|
67
67
|
- app/models/civo/instance.rb
|
68
|
+
- app/models/civo/ip.rb
|
68
69
|
- app/models/civo/quota.rb
|
69
70
|
- app/models/civo/region.rb
|
70
71
|
- app/models/civo/size.rb
|