barge 0.8.0 → 0.9.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: a580428f182b00e938e6b137ca19d27f875be4ad
4
- data.tar.gz: 6fd36010dac884e132d4d137de028a140a5c2091
3
+ metadata.gz: ee587fcb8b63dc226ba46746923a997175ebeb6a
4
+ data.tar.gz: 9ee2443d877ef2d6299deb5bffdda8ed0294a5c2
5
5
  SHA512:
6
- metadata.gz: 7a7cb726892362d9d833f2f07d715ffd80f3eb68297f1a2c96da717438c322fb63b1105e39175803c3186834c1b12e342436f755109007956d56e97d97aa382e
7
- data.tar.gz: 06d0c6b59f05acad0f15c76c5981f2cb3479e085c689c389398ad17bc6b3edf1f2ce2b53863d5c413d371d05d93a2b9f669911fc2e8ea19f69c42d0544635272
6
+ metadata.gz: 9fd6c0fc454d507cc3287e872e8d58f27f425b499094f4cc29fbe5b8c96bbd0e903c884385f6c54620d6a9cecd7c4f0e1cbb3c0c1be67a0777787d87745da80e
7
+ data.tar.gz: 8faeb0088fd79fd4c286c15ad9dbf7bb3a171f7e75fbfacf6e983e5e3f3e7bfd2ea77d51543993c55ca97e7f202bcb8018ff524fe5e0df1302117be58e08c81d
data/README.md CHANGED
@@ -192,6 +192,12 @@ barge.droplet.kernels(droplet_id)
192
192
  barge.droplet.snapshots(droplet_id)
193
193
  ```
194
194
 
195
+ ### Create snapshot
196
+
197
+ ``` ruby
198
+ barge.droplet.snapshot(droplet_id, 'image name')
199
+ ```
200
+
195
201
  ### Destroy droplet
196
202
 
197
203
  ``` ruby
@@ -35,6 +35,10 @@ module Barge
35
35
  action(droplet_id, __method__, name: name)
36
36
  end
37
37
 
38
+ def snapshot(droplet_id, name)
39
+ action(droplet_id, __method__, name: name)
40
+ end
41
+
38
42
  def reboot(droplet_id)
39
43
  action(droplet_id, __method__)
40
44
  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 = 8
4
+ MINOR = 9
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.8.0
4
+ version: 0.9.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-18 00:00:00.000000000 Z
11
+ date: 2014-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday