handy 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # handy provides follwing tools
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
- restores the data from production database to staging database
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
@@ -1,3 +1,3 @@
1
1
  module Handy
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
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: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
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-11 00:00:00 -04:00
18
+ date: 2010-10-20 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency