handy 0.0.5 → 0.0.6
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.
- data/README.md +2 -2
- data/lib/handy/tasks.rb +2 -0
- data/lib/handy/version.rb +1 -1
- metadata +4 -4
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# A Rails3 compliant gem which provides followings rake tasks#
|
2
2
|
|
3
3
|
##rake handy:db:backup##
|
4
4
|
Creates a dump of data and structure which can been safely backed up
|
@@ -7,7 +7,7 @@ Creates a dump of data and structure which can been safely backed up
|
|
7
7
|
restores the data and structure from file
|
8
8
|
|
9
9
|
##rake handy:db:db2db##
|
10
|
-
|
10
|
+
Restores the data from production database to staging database. More options can be specified.
|
11
11
|
|
12
12
|
##rake handy:db:dump2s3##
|
13
13
|
Creates a backup and then stores that backup on s3
|
data/lib/handy/tasks.rb
CHANGED
@@ -8,6 +8,8 @@ namespace :handy do
|
|
8
8
|
raise "file was not supplied. Check Usage." unless file_name
|
9
9
|
file = File.join(Rails.root, 'tmp', file_name)
|
10
10
|
raise "file was not found" unless File.exists?(file)
|
11
|
+
Rake::Task["db:drop"].invoke
|
12
|
+
Rake::Task["db:create"].invoke
|
11
13
|
|
12
14
|
Handy::Restore.run(file, Rails.env)
|
13
15
|
end
|
data/lib/handy/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: handy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 6
|
10
|
+
version: 0.0.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Neeraj Singh
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-10-
|
18
|
+
date: 2010-10-20 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|