barge 0.2.0 → 0.3.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: 2ba2d56eb1aefe8844f1cfdede0bcc31a66c6212
4
- data.tar.gz: f875f5aeb71cbab91361020393b11e95a0510b20
3
+ metadata.gz: 9ee7f58932c6fee20360c6937a8c8738b3b1200b
4
+ data.tar.gz: 0f825d3a91b3fca450f7d3175b4eac647282ed75
5
5
  SHA512:
6
- metadata.gz: d09c27c68506ce2744c2301b06a4d6f2549094fa1641a438f189138f8ffea25c4182fcf08f81c91393ec3b0c79cef6d832d2c77ca28aee6bf04d47c418347f4d
7
- data.tar.gz: 5254c993f1de915069ed1e18b6cdf673732be65be6335a74c6284d21a0bf5bba3bc75bfa67505e93950ff8b6be30ec40cabdd50c25265c792e6f4e4aa3bc055e
6
+ metadata.gz: b06032d698df9aabc99379f58dcdb97a0c083c0358b792c1aa402f22854f5b31579564ddb7439211b568983955a287bd3082b23b8202a5af5cfbc1d6d0c81d7b
7
+ data.tar.gz: aaf2e91f3c4048dd8fd04080fc69cf0a701abacd52c257ca7de1b5a5655a67e81060e5a62f1585147b534d4c34d7dbafbf241cff49216386622175ad254bc8a5
data/README.md CHANGED
@@ -102,6 +102,18 @@ barge.droplet.all
102
102
  barge.droplet.show(droplet_id)
103
103
  ```
104
104
 
105
+ ### Show droplet backups
106
+
107
+ ``` ruby
108
+ barge.droplet.backups(droplet_id)
109
+ ```
110
+
111
+ ### Show droplet snapshots
112
+
113
+ ``` ruby
114
+ barge.droplet.snapshots(droplet_id)
115
+ ```
116
+
105
117
  ### Destroy droplet
106
118
 
107
119
  ``` ruby
@@ -15,6 +15,14 @@ module Barge
15
15
  get("droplets/#{droplet_id}")
16
16
  end
17
17
 
18
+ def backups(droplet_id)
19
+ get("droplets/#{droplet_id}/backups")
20
+ end
21
+
22
+ def snapshots(droplet_id)
23
+ get("droplets/#{droplet_id}/snapshots")
24
+ end
25
+
18
26
  def destroy(droplet_id)
19
27
  delete("droplets/#{droplet_id}")
20
28
  end
@@ -1,7 +1,7 @@
1
1
  module Barge
2
2
  class Version
3
3
  MAJOR = 0
4
- MINOR = 2
4
+ MINOR = 3
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.2.0
4
+ version: 0.3.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-06-08 00:00:00.000000000 Z
11
+ date: 2014-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday