prun-ops 0.0.20 → 0.0.21

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f56c4f3e6239106e2b0441f6cfc53728116f804d
4
- data.tar.gz: bdd11534a7fd6f7aa87bba321786001a5e52c2e5
3
+ metadata.gz: 2b327d5eff0259d16ad87de40311e4b99d1e1f23
4
+ data.tar.gz: 395b5c1c18babccd6d2ebb5faaae50c6d9329284
5
5
  SHA512:
6
- metadata.gz: b270467b7d9e31a14fdb5ddb8889b215b1b9c5461718cdb653245120346ca506cfd4bd6c5a51cf5a2fe87c40c505065129dc98de8190fe7a399b7636133b860a
7
- data.tar.gz: 06165b63be13af0a4cfa93b3c29a642e5c2e067d7b64e55566e2dcb15273285328a1ec9779ca8d0c64143fe2e6a892372f98d80457ac8d96bdf2b5c6550ec277
6
+ metadata.gz: 3b5859e817cd5885d9da916f0c05401ca7b519fef88d99367efa75dc8fc302a8f9b03e6f647b6069c5364fd5eff514a50c6716bd04e43ff60f2c7f8baf1ff6d3
7
+ data.tar.gz: e3793acab7d1e1a323898c350006adaf41cbf3c52aa157ece37da457c34915ceea8c36959691084171712ad0995470f61412ae1b8fd1ea634f6f03c6082e19b6
data/README.md CHANGED
@@ -89,14 +89,6 @@ Configure your 'config/applciation.rb':
89
89
  config.backup_repo = "git@github.com:example/backup.git"
90
90
  ```
91
91
 
92
- And your 'config/deploy.rb':
93
-
94
- ```ruby
95
- # Backup directories
96
- require_relative "./application.rb"
97
- set :backup_dirs, Taskboard::Application.config.backup_dirs
98
- ```
99
-
100
92
  And
101
93
  ![backup schema](https://docs.google.com/drawings/d/1Sp8ysn46ldIWRxaLUHfzpu7vK0zMjh4_iMpEP1U6SuU/pub?w=642&h=277 "Backup commands schema")
102
94
 
@@ -175,4 +167,14 @@ At this moment we are implementing [NewRelic](http://newrelic.com/) monitoring,
175
167
  ### v0.0.10
176
168
 
177
169
  * Removing bin/ops command in order to create open-dock gem
178
- * Remove prun-ops dependency from 'config/deployment.rb' file and ad it to 'Capfile' as `require 'capistrano/prun-ops'`
170
+ * Remove prun-ops dependency from 'config/deployment.rb' file and ad it to 'Capfile' as `require 'capistrano/prun-ops'`
171
+
172
+ ### v0.0.21
173
+
174
+ * Remove from your 'config/deploy.rb':
175
+
176
+ ```ruby
177
+ # Backup directories
178
+ require_relative "./application.rb"
179
+ set :backup_dirs, Taskboard::Application.config.backup_dirs
180
+ ```
@@ -1,4 +1,10 @@
1
- set :backup_dirs, []
1
+
2
+ require_relative "./application.rb"
3
+ if Rails.application.config.respond_to? :backup_dirs
4
+ set :backup_dirs, Rails.application.config.backup_dirs
5
+ else
6
+ set :backup_dirs, []
7
+ end
2
8
 
3
9
  namespace :deploy do
4
10
 
@@ -1,3 +1,3 @@
1
1
  module PrunOps
2
- VERSION = "0.0.20"
2
+ VERSION = "0.0.21"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prun-ops
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.20
4
+ version: 0.0.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Lebrijo