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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 14cc331d2afc2f1568d5b02b05b2535a3d9129d1
4
- data.tar.gz: 3b5a8377d815db33367aef61f048bf4cfd12a9bb
3
+ metadata.gz: 61432518c68ce3048755a40556dc53afdc00b3f4
4
+ data.tar.gz: 83ad99d33eebc187912e45547edbdfe59b8952b5
5
5
  SHA512:
6
- metadata.gz: ae136b0230f015bde2688a91a8f93c960a7d686c154d3a4aaeab78eb5ebbc51cc4b6812675289a47818015f06b206e403ff6d644722172a27cb8a265ff0c0923
7
- data.tar.gz: 03525331f0589dc7238aa0c28056a367d1a82fafadebeaf5ef9eae6dbad27148b6564bfd691c38b05cece8e233645c4edb4474c558c92af95ec6c9faee2f05a8
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
@@ -1,7 +1,7 @@
1
1
  module Barge
2
2
  class Version
3
3
  MAJOR = 0
4
- MINOR = 6
4
+ MINOR = 7
5
5
  PATCH = 0
6
6
 
7
7
  def self.to_s
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.6.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-01 00:00:00.000000000 Z
11
+ date: 2014-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday