dark-capistrano-recipes 0.6.16 → 0.6.17
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/dark-capistrano-recipes.gemspec +2 -2
- data/lib/recipes/bundler.rb +1 -1
- data/lib/recipes/db.rb +7 -0
- data/lib/recipes/unicorn.rb +2 -6
- metadata +4 -4
data/VERSION.yml
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{dark-capistrano-recipes}
|
8
|
-
s.version = "0.6.
|
8
|
+
s.version = "0.6.17"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Phil Misiowiec", "Leonardo Bighetti"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-11-30}
|
13
13
|
s.description = %q{Extend the Capistrano gem with these useful recipes}
|
14
14
|
s.email = %q{leonardobighetti@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/recipes/bundler.rb
CHANGED
data/lib/recipes/db.rb
CHANGED
@@ -80,6 +80,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
80
80
|
db_config = ERB.new <<-EOF
|
81
81
|
base: &base
|
82
82
|
adapter: mysql
|
83
|
+
encoding: utf8
|
83
84
|
username: #{db_user}
|
84
85
|
password: #{db_pass}
|
85
86
|
|
@@ -102,4 +103,10 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
102
103
|
set(:db_user) { Capistrano::CLI.ui.ask "Enter #{environment} database username:" }
|
103
104
|
set(:db_pass) { Capistrano::CLI.password_prompt "Enter #{environment} database password:" }
|
104
105
|
end
|
106
|
+
|
107
|
+
desc "Populates the database with seed data"
|
108
|
+
task :seed do
|
109
|
+
Capistrano::CLI.ui.say "Populating the database..."
|
110
|
+
run "cd #{current_path}; rake RAILS_ENV=#{variables[:rails_env]} db:seed"
|
111
|
+
end
|
105
112
|
end
|
data/lib/recipes/unicorn.rb
CHANGED
@@ -69,12 +69,8 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
69
69
|
EOF
|
70
70
|
task :setup, :roles => :app , :except => { :no_release => true } do
|
71
71
|
# TODO: refactor this to a more generic setup task once we have more socket tasks.
|
72
|
-
|
73
|
-
|
74
|
-
commands << "chown #{user}:#{group} #{sockets_path} -R"
|
75
|
-
commands << "chmod +rw #{sockets_path}"
|
76
|
-
|
77
|
-
run commands.join(" && ")
|
72
|
+
run "#{try_sudo} mkdir -p #{sockets_path}"
|
73
|
+
run "#{try_sudo} chown #{user}:#{group} #{sockets_path} -R"
|
78
74
|
generate_config(unicorn_local_config,unicorn_remote_config)
|
79
75
|
end
|
80
76
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dark-capistrano-recipes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 37
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 17
|
10
|
+
version: 0.6.17
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Phil Misiowiec
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-
|
19
|
+
date: 2010-11-30 00:00:00 -02:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|