zentask 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/tasks/db.rake +3 -10
- data/lib/zentask/version.rb +1 -1
- metadata +3 -3
data/lib/tasks/db.rake
CHANGED
@@ -2,16 +2,9 @@
|
|
2
2
|
namespace :db do
|
3
3
|
desc "Hard development sqlite3 reset && seed"
|
4
4
|
task :hard_reset do
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
File.delete("#{Rails.root}/#{file_name}")
|
9
|
-
print " OK\n"
|
10
|
-
rescue
|
11
|
-
print " FAIL\n"
|
12
|
-
end
|
13
|
-
puts "[rake] db:migrate && [rake] db:seed"
|
14
|
-
exec "cd #{Rails.root} && rake db:migrate && rake db:seed"
|
5
|
+
cmd = "rake db:drop && rake db:create && rake db:migrate && rake db:seed"
|
6
|
+
puts cmd.gsub('rake','[rake]')
|
7
|
+
exec "cd #{Rails.root} && #{cmd}"
|
15
8
|
end
|
16
9
|
|
17
10
|
desc "Soft database reset && seed"
|
data/lib/zentask/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zentask
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-07-
|
12
|
+
date: 2012-07-24 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: zengile.com rake tasks
|
15
15
|
email:
|
@@ -48,7 +48,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
48
48
|
version: '0'
|
49
49
|
requirements: []
|
50
50
|
rubyforge_project:
|
51
|
-
rubygems_version: 1.8.
|
51
|
+
rubygems_version: 1.8.24
|
52
52
|
signing_key:
|
53
53
|
specification_version: 3
|
54
54
|
summary: zengile.com rake tasks, we use every day
|