backup_foundation 0.9.4 → 0.9.5

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: e551a2d3dc0da1b02e9aeac46bf78a2d1c8a4a9c
4
- data.tar.gz: 20d5efee61d05ffc931bf90bb6ca2cd67b914d10
3
+ metadata.gz: 31930729dac6bdb5040980c7883dfc6ce7ef1383
4
+ data.tar.gz: 077ee3cca05d025498387b348f1a2c180f86d1e1
5
5
  SHA512:
6
- metadata.gz: dac1c3cc89dc62c847758ff79531a04994e692d8b8c8e0aa62394da655f8c0134308784973dd9cd91aa95308b95014f8b4b54ea7374a3d98d770955f98404892
7
- data.tar.gz: ffaf1f2ed65ff213fcaebff6b2dcf92c36818ecce7e15ad9f4833d5bf54274084518641051537c2dcbbc3a3860c11469f804d8bc3ea27f3c2ad4cf38c9c52a99
6
+ metadata.gz: 273294319e9f1c0c284a9eeaa9228df107eb6cc2f8d70863cff1397ab0c8a34d42b185acc2fee0f4c2458de14fdc6ae8b8f7eb876c70b57c819c296d955e67cf
7
+ data.tar.gz: 9b58dded9c09d8c61264bc2ab20d173a129ecff2cd5af7d7bc172a3ea7a26568f41c44d62ce814ed2360e01df867858a0fc731a69159e50115ecefaded7d7b32
data/README.md CHANGED
@@ -11,9 +11,9 @@ Add this line to your application's `Gemfile`:
11
11
  And then execute:
12
12
 
13
13
  $ bundle
14
- $ bundle exec rails g backup_foundation:install
14
+ $ bundle exec rails g backup_foundation:install YOUR_APP_KEY
15
15
 
16
- Don't forget to set your App Key from [Backup.Foundation](https://backup.foundation/) in `config/initializers/backup_foundation.rb`
16
+ You can get your App Key on [Backup.Foundation](https://backup.foundation/).
17
17
 
18
18
  ## Usage
19
19
 
@@ -49,7 +49,7 @@ And
49
49
 
50
50
  $ bundle exec cap production backup_foundation:restore
51
51
 
52
- By default, commands will be executed on servers in role `app`. You can change it by setting
52
+ By default, commands will be executed on servers in role `db`. You can change it by setting
53
53
 
54
54
  set :backup_foundation_roles, ->{ :another_role }
55
55
 
@@ -1,5 +1,5 @@
1
1
  Capistrano::Configuration.instance(:must_exist).load do
2
- _cset(:backup_foundation_roles) { :app }
2
+ _cset(:backup_foundation_roles) { :db }
3
3
 
4
4
  load do
5
5
  def backup_foundation_servers
@@ -24,6 +24,6 @@ end
24
24
 
25
25
  namespace :load do
26
26
  task :defaults do
27
- set :backup_foundation_roles, ->{ :app }
27
+ set :backup_foundation_roles, ->{ :db }
28
28
  end
29
29
  end
@@ -1,3 +1,3 @@
1
1
  module BackupFoundation
2
- VERSION = "0.9.4"
2
+ VERSION = "0.9.5"
3
3
  end
@@ -2,6 +2,7 @@ module BackupFoundation
2
2
  module Generators
3
3
  class InstallGenerator < Rails::Generators::Base
4
4
  source_root File.expand_path("../templates", __FILE__)
5
+ argument :app_key, type: :string, default: 'ENTER_YOUR_APP_KEY_HERE'
5
6
 
6
7
  desc 'This generator creates an initializer file at config/initializers'
7
8
 
@@ -1,6 +1,6 @@
1
1
  # Be sure to restart your server when you modify this file.
2
2
 
3
- BackupFoundation.store_app "ENTER_YOUR_APP_KEY_HERE" do
3
+ BackupFoundation.store_app '<%= app_key %>' do
4
4
  backup_db
5
5
 
6
6
  encrypt '<%= SecureRandom.hex %>'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backup_foundation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 0.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Shaydurov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-03 00:00:00.000000000 Z
11
+ date: 2014-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake