backup-rails 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YTNhMzZhNzFlZDA5OTYxMDdlMzJiOTU3ODJkNzZjYmNmMWM2YWU4Yw==
5
- data.tar.gz: !binary |-
6
- ZWE0NDExZjhkODUxZjYyMDFmM2Y1YTZmMmI0YjNmZGQzODY5NmY2Mw==
2
+ SHA1:
3
+ metadata.gz: 19b697452ebdadd50977fcf7edf8247fdc4ab5ff
4
+ data.tar.gz: 0a68004e4179d8f6f4dc739c37fac42df867ab10
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- ZTY3M2NjMDM4ZWY4MWUwZjFmYWM3Y2U0MTdlODhiNmIyNjg5NWM3MGE2MDE1
10
- YzE4NzA5ZmIzZjk1YzFlMjk4ODExY2M4NjZlOTgwOWZlNTZmMWQ2YjYwYTNh
11
- OTAyNDkwYWQyNGVjMTUxMDY4MWVkN2JkZTBiNzA5MzgxMDM0ZjY=
12
- data.tar.gz: !binary |-
13
- MDUxODhlNDZmZjExYmY5MzM2ODkyYTdlNjhhZWUwMmRlZWZjMDc3MGMxMDZi
14
- MTQyNDNmMTlmYzIxOWI4ZmU4ZTJhNTM2ODkwMzRjMWJjMGE0ZWJlNWIxZWEy
15
- ZTc5NThjZDkyNjRmMDk0MzdlMTBhMjQ0NmY2MjcxY2ViMzcwYjY=
6
+ metadata.gz: 6c86f4c47e16cae82f5fab000c33f84a4576f5c410d351d677a3abe3df4b7750093c0605bf938fc3b43a2b075a84ef36c6a86fdef3eb1941ce263df31062d1d8
7
+ data.tar.gz: 68577072755b30cfb8d531decb5d93bd29e771e74057c7e64e9b1531fe4906b4015882820c1756b1eb7b3a537067d72bb1efad9996e21f608f21d273080c7fe7
data/README.md CHANGED
@@ -18,7 +18,25 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- TODO: Write usage instructions here
21
+ Generate configuration files:
22
+
23
+ $ rails g backup:rails:install
24
+
25
+ And change .env file in the root of the project.
26
+
27
+ If you don't use [capistrano with whenever](https://github.com/javan/whenever#capistrano-v3-integration) run:
28
+
29
+ $ whenever -w
30
+
31
+ for set crontab configuration.
32
+
33
+ ## Restore
34
+
35
+ Run command for archive file (general.tar or general.tar.enc):
36
+
37
+ $ backup_rails restore <path to archive> <destination path> [--ssl_password=<password>]
38
+
39
+ This command restore code to destination path and database according with database.yml in code.
22
40
 
23
41
  ## Contributing
24
42
 
data/backup-rails.gemspec CHANGED
@@ -18,11 +18,11 @@ Gem::Specification.new do |gem|
18
18
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
19
19
  gem.require_paths = ["lib"]
20
20
 
21
- gem.add_dependency 'backup', '>= 3.4.0'
22
- gem.add_dependency 'whenever'
23
- gem.add_dependency 'dotenv-rails'
24
- gem.add_dependency 'fog', '~> 1.9'
25
- gem.add_dependency 'net-ssh', '>= 2.3.0', '<= 2.7.2'
26
- gem.add_dependency 'excon', '~> 0.17.0'
21
+ gem.add_runtime_dependency 'backup', '>= 3.4.0'
22
+ gem.add_runtime_dependency 'whenever'
23
+ gem.add_runtime_dependency 'dotenv-rails'
24
+ gem.add_runtime_dependency 'fog', '~> 1.9'
25
+ gem.add_runtime_dependency 'net-ssh', '>= 2.3.0', '<= 2.5.2'
26
+ gem.add_runtime_dependency 'excon', '~> 0.17.0'
27
27
  end
28
28
 
@@ -1,5 +1,5 @@
1
1
  module Backup
2
2
  module Rails
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,103 +1,103 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backup-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oleg Bavaev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-10 00:00:00.000000000 Z
11
+ date: 2014-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: backup
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 3.4.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 3.4.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: whenever
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: dotenv-rails
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: fog
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '1.9'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '1.9'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: net-ssh
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ! '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: 2.3.0
76
- - - <=
76
+ - - "<="
77
77
  - !ruby/object:Gem::Version
78
- version: 2.7.2
78
+ version: 2.5.2
79
79
  type: :runtime
80
80
  prerelease: false
81
81
  version_requirements: !ruby/object:Gem::Requirement
82
82
  requirements:
83
- - - ! '>='
83
+ - - ">="
84
84
  - !ruby/object:Gem::Version
85
85
  version: 2.3.0
86
- - - <=
86
+ - - "<="
87
87
  - !ruby/object:Gem::Version
88
- version: 2.7.2
88
+ version: 2.5.2
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: excon
91
91
  requirement: !ruby/object:Gem::Requirement
92
92
  requirements:
93
- - - ~>
93
+ - - "~>"
94
94
  - !ruby/object:Gem::Version
95
95
  version: 0.17.0
96
96
  type: :runtime
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
- - - ~>
100
+ - - "~>"
101
101
  - !ruby/object:Gem::Version
102
102
  version: 0.17.0
103
103
  description: Backup rails project with backup & whenever gems
@@ -108,8 +108,8 @@ executables:
108
108
  extensions: []
109
109
  extra_rdoc_files: []
110
110
  files:
111
- - .gitignore
112
- - .rspec
111
+ - ".gitignore"
112
+ - ".rspec"
113
113
  - Gemfile
114
114
  - Guardfile
115
115
  - LICENSE
@@ -137,17 +137,17 @@ require_paths:
137
137
  - lib
138
138
  required_ruby_version: !ruby/object:Gem::Requirement
139
139
  requirements:
140
- - - ! '>='
140
+ - - ">="
141
141
  - !ruby/object:Gem::Version
142
142
  version: '0'
143
143
  required_rubygems_version: !ruby/object:Gem::Requirement
144
144
  requirements:
145
- - - ! '>='
145
+ - - ">="
146
146
  - !ruby/object:Gem::Version
147
147
  version: '0'
148
148
  requirements: []
149
149
  rubyforge_project:
150
- rubygems_version: 2.2.1
150
+ rubygems_version: 2.2.0
151
151
  signing_key:
152
152
  specification_version: 4
153
153
  summary: Backup rails project
@@ -156,4 +156,3 @@ test_files:
156
156
  - spec/lib/generators/backup/rails/install_generator_spec.rb
157
157
  - spec/spec_helper.rb
158
158
  - spec/support/custom_matchers.rb
159
- has_rdoc: