barge 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +24 -0
- data/lib/barge/resource/droplet.rb +16 -0
- data/lib/barge/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61432518c68ce3048755a40556dc53afdc00b3f4
|
4
|
+
data.tar.gz: 83ad99d33eebc187912e45547edbdfe59b8952b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9f72efc66ce4041203e6086d8b5159f726b1cc1c54593a2c7ed5d6399597903092d1e5de6f5e7777732b6d2430502a2a8d8d8dd723f0b2c15919c1efb569b23
|
7
|
+
data.tar.gz: 659a25b05ae7b778294e692300c8f02e81d08ab0f88f320919c7bc06bdd7c3cedf238ce4ff22efa95a49e56bafa46b8325db69c27193fbe2eaf76bc2212f1b8e
|
data/README.md
CHANGED
@@ -203,6 +203,30 @@ barge.droplet.restore(droplet_id, image_id)
|
|
203
203
|
barge.droplet.password_reset(droplet_id)
|
204
204
|
```
|
205
205
|
|
206
|
+
### Change a droplet's kernel
|
207
|
+
|
208
|
+
``` ruby
|
209
|
+
barge.droplet.change_kernel(droplet_id, kernel_id)
|
210
|
+
```
|
211
|
+
|
212
|
+
### Enable IPv6 for a droplet
|
213
|
+
|
214
|
+
``` ruby
|
215
|
+
barge.droplet.enable_ipv6(droplet_id)
|
216
|
+
```
|
217
|
+
|
218
|
+
### Disable backups for a droplet
|
219
|
+
|
220
|
+
``` ruby
|
221
|
+
barge.droplet.disable_backups(droplet_id)
|
222
|
+
```
|
223
|
+
|
224
|
+
### Enable private networking for a droplet
|
225
|
+
|
226
|
+
``` ruby
|
227
|
+
barge.droplet.enable_private_networking(droplet_id)
|
228
|
+
```
|
229
|
+
|
206
230
|
### Show droplet actions
|
207
231
|
|
208
232
|
``` ruby
|
@@ -71,6 +71,22 @@ module Barge
|
|
71
71
|
action(droplet_id, __method__)
|
72
72
|
end
|
73
73
|
|
74
|
+
def change_kernel(droplet_id, kernel_id)
|
75
|
+
action(droplet_id, __method__, kernel: kernel_id)
|
76
|
+
end
|
77
|
+
|
78
|
+
def enable_ipv6(droplet_id)
|
79
|
+
action(droplet_id, __method__)
|
80
|
+
end
|
81
|
+
|
82
|
+
def disable_backups(droplet_id)
|
83
|
+
action(droplet_id, __method__)
|
84
|
+
end
|
85
|
+
|
86
|
+
def enable_private_networking(droplet_id)
|
87
|
+
action(droplet_id, __method__)
|
88
|
+
end
|
89
|
+
|
74
90
|
def actions(droplet_id)
|
75
91
|
get("droplets/#{droplet_id}/actions")
|
76
92
|
end
|
data/lib/barge/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: barge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Ørjan Blom"
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|