capistrano-rails-dbinit 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,8 +32,10 @@ Capistrano::Configuration.instance.load do
32
32
  deploy:db:seed)
33
33
 
34
34
 
35
- agree = Capistrano::CLI.ui.agree("deploy:db:init will DROP your database. Are you sure? (Yes, No)") do |q|
36
- q.default = 'No'
35
+ if ENV["FORCE_DEPLOY_DB_INIT"] == nil
36
+ agree = Capistrano::CLI.ui.agree("deploy:db:init will DROP your database. Are you sure? (Yes, No)") do |q|
37
+ q.default = 'No'
38
+ end
37
39
  end
38
40
 
39
41
  transaction do
@@ -1,7 +1,7 @@
1
1
  module Capistrano
2
2
  module Rails
3
3
  module Dbinit
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-rails-dbinit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
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: 2013-02-15 00:00:00.000000000 Z
12
+ date: 2013-04-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
@@ -83,4 +83,3 @@ signing_key:
83
83
  specification_version: 3
84
84
  summary: Capistrano tasks to initialize database for Rails Apps
85
85
  test_files: []
86
- has_rdoc: