capistrano-lemur 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/capistrano-lemur/version.rb +1 -1
- data/lib/capistrano/lemur/db.rb +1 -8
- metadata +6 -6
data/lib/capistrano/lemur/db.rb
CHANGED
@@ -42,17 +42,10 @@ Capistrano::Configuration.instance.load do
|
|
42
42
|
run "cd #{current_path}; bundle exec rake RAILS_ENV=#{rails_env} db:remigrate"
|
43
43
|
end
|
44
44
|
|
45
|
-
desc "Seed the database on already deployed code"
|
46
|
-
task :seed, :roles => :db, :only => {:primary => true}, :except => { :no_release => true } do
|
47
|
-
confirm = Capistrano::CLI.ui.ask "This is a dangerous task. Type 'yes sir' to continue."
|
48
|
-
exit unless confirm.downcase == 'yes sir'
|
49
|
-
run "cd #{current_path}; bundle exec rake RAILS_ENV=#{rails_env} db:seed"
|
50
|
-
end
|
51
|
-
|
52
45
|
after "mysql:create_users", "db:setup"
|
53
46
|
|
54
47
|
end
|
55
48
|
|
56
49
|
|
57
50
|
|
58
|
-
end
|
51
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-lemur
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-03-
|
12
|
+
date: 2012-03-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|
16
|
-
requirement: &
|
16
|
+
requirement: &70224004241100 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: 2.11.2
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70224004241100
|
25
25
|
description: Recipes for deploying a LEMUR (Linux/Nginx/Mysql/Unicorn/Rails) stack.
|
26
26
|
Some of it is pulled from an existing application
|
27
27
|
email:
|
@@ -58,7 +58,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
58
58
|
version: '0'
|
59
59
|
segments:
|
60
60
|
- 0
|
61
|
-
hash:
|
61
|
+
hash: 1184343548892465661
|
62
62
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
63
|
none: false
|
64
64
|
requirements:
|
@@ -67,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
67
67
|
version: '0'
|
68
68
|
segments:
|
69
69
|
- 0
|
70
|
-
hash:
|
70
|
+
hash: 1184343548892465661
|
71
71
|
requirements: []
|
72
72
|
rubyforge_project:
|
73
73
|
rubygems_version: 1.8.17
|