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 +4 -4
- data/README.md +12 -0
- data/lib/barge/resource/droplet.rb +8 -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: 9ee7f58932c6fee20360c6937a8c8738b3b1200b
|
4
|
+
data.tar.gz: 0f825d3a91b3fca450f7d3175b4eac647282ed75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.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-
|
11
|
+
date: 2014-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|