prun-ops 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -1
- data/lib/prun-ops/cap/backup.rb +13 -1
- data/lib/prun-ops/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ec3eb4b69431ebbb5941d687911452248a3c1a5d
|
|
4
|
+
data.tar.gz: ca3abca57bcda29aadda2f107fba838ac99a8e89
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c4ebc2f20397e9c5a30aade2f8bbaefc6b3156412ed5f4df6b8476e7c5281f6ddef0dc1b22b34159ed71c24dceaeb3cc1984ea2a49c0c9e54db672bb90c71799
|
|
7
|
+
data.tar.gz: 9dcd70aee6cb36d016ce9c304893ea2358fb6704046cb351f39fefa344ede6bc322e006a87410f0971b6254beeae31ff25a528695a0d4b2844c6627d9e2ce3c5
|
data/README.md
CHANGED
|
@@ -268,4 +268,8 @@ Some capistrano commands useful to connect to server and help with the problem s
|
|
|
268
268
|
### v0.0.6
|
|
269
269
|
|
|
270
270
|
* Fixing DigitalOcean images error when slug is nil for client images
|
|
271
|
-
* Adding git:ff rake task
|
|
271
|
+
* Adding git:ff rake task
|
|
272
|
+
|
|
273
|
+
### v0.0.8
|
|
274
|
+
|
|
275
|
+
* Adding backup[tag] capistrano task for production
|
data/lib/prun-ops/cap/backup.rb
CHANGED
|
@@ -10,4 +10,16 @@ namespace :backup do
|
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
end
|
|
13
|
-
end
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
desc 'Backup data to a git repo, tagging it into the git repo'
|
|
16
|
+
task :backup, :tag do |task, args|
|
|
17
|
+
on roles(:app) do
|
|
18
|
+
within release_path do
|
|
19
|
+
with rails_env: "production" do
|
|
20
|
+
execute :rake, "backup #{args[:tag]}"
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
end
|
data/lib/prun-ops/version.rb
CHANGED