civo 0.5.0 → 0.5.1
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/network.rb +8 -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: ba387c1f59265de7f87981317c4ba50f488a7fb6
|
4
|
+
data.tar.gz: f0d6361f57512ac9e03d1d40112bba0e481de04c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7b9acf3109a2cff419bae48e8d85c000940b5f4a1aca3f67fb5540480859c535096e44ec74d4ca42481a10558cc8ee3a7fa6bd8ac07fe1783656fcee5c90524
|
7
|
+
data.tar.gz: a5bcbc32c705b31254bfa506a4d08cb677af0a93369d72bba4d35a926723ec442252e1f903b1b22c2887c2887501657cf320dfe458bae5cbad4be04ce867e8be
|
@@ -0,0 +1,8 @@
|
|
1
|
+
module Civo
|
2
|
+
class Network < Base
|
3
|
+
get :all, "/v#{ENV["CIVO_API_VERSION"] || "1"}/networks"
|
4
|
+
post :create, "/v#{ENV["CIVO_API_VERSION"] || "1"}/networks", required: [:name]
|
5
|
+
put :update, "/v#{ENV["CIVO_API_VERSION"] || "1"}/networks/:name", required: [:name]
|
6
|
+
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "1"}/networks/:name", required: [:name]
|
7
|
+
end
|
8
|
+
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.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Jeffries
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: flexirest
|
@@ -84,6 +84,7 @@ files:
|
|
84
84
|
- app/models/civo/firewall_rule.rb
|
85
85
|
- app/models/civo/instance.rb
|
86
86
|
- app/models/civo/ip.rb
|
87
|
+
- app/models/civo/network.rb
|
87
88
|
- app/models/civo/quota.rb
|
88
89
|
- app/models/civo/region.rb
|
89
90
|
- app/models/civo/size.rb
|