capones_recipes 1.14.0 → 1.14.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,7 +16,7 @@ Capistrano::Configuration.instance.load do
16
16
  task :grant, :roles => :db_server do
17
17
  # TODO: support more than one server
18
18
  # TODO: lookup fqdn for web servers
19
- web_server = find_servers(:roles => :web).first
19
+ web_server = find_servers(:roles => :app).first
20
20
  run "mysql -u root -p #{db_database} -e \"GRANT ALL PRIVILEGES ON #{db_database}.* TO '#{db_username}'@'#{web_server}' IDENTIFIED BY '#{db_password}'\"" do |channel, stream, data|
21
21
  if data =~ /^Enter password:/
22
22
  logger.info "#{channel[:host]} asked for password"
@@ -62,7 +62,9 @@ Capistrano::Configuration.instance.load do
62
62
 
63
63
  desc "Setup database"
64
64
  task :setup, :roles => :db do
65
- set :rake_task, 'db:setup'
65
+ set :rake_task, 'db:schema:load'
66
+ rake
67
+ set :rake_task, 'db:seed'
66
68
  rake
67
69
  end
68
70
  end
@@ -1,3 +1,3 @@
1
1
  module CaponesRecipes
2
- VERSION = "1.14.0"
2
+ VERSION = "1.14.1"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capones_recipes
3
3
  version: !ruby/object:Gem::Version
4
- hash: 47
4
+ hash: 45
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 14
9
- - 0
10
- version: 1.14.0
9
+ - 1
10
+ version: 1.14.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Roman Simecek (CyT)
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-12-27 00:00:00 Z
19
+ date: 2011-12-28 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: capistrano
@@ -194,3 +194,4 @@ specification_version: 3
194
194
  summary: Some capistrano recipes for use.
195
195
  test_files: []
196
196
 
197
+ has_rdoc: