marcosgz-cap-recipe 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -29,7 +29,7 @@ Capistrano::Configuration.instance(:must_exist).load do
29
29
 
30
30
  task :application_server, :roles => :app do
31
31
  # App Server
32
- case fetch(:app_server, nil)
32
+ case fetch(:app_server, nil).to_s
33
33
  when 'passenger'
34
34
  passenger.setup
35
35
  when 'unicorn'
@@ -37,6 +37,8 @@ Capistrano::Configuration.instance(:must_exist).load do
37
37
  unicorn.monit.setup
38
38
  when 'thin'
39
39
  thin.setup
40
+ else
41
+ puts "WARNING: set :app_server with (passenger, unicorn or thin) to automatically run the <server>:setup task"
40
42
  end
41
43
  end
42
44
  end
@@ -44,7 +44,7 @@ Capistrano::Configuration.instance(:must_exist).load do
44
44
 
45
45
  namespace :setup do
46
46
  desc "Upload configs"
47
- task :default, :roles => :db do
47
+ task :default, :roles => :app do
48
48
  if exists?(:db_setup_settings)
49
49
  set(:recipe_settings, database_template_settings)
50
50
  put template.render(fetch(:database_template)), fetch(:database_remote_file)
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "marcosgz-cap-recipe"
6
- s.version = "0.0.7"
6
+ s.version = "0.0.8"
7
7
  s.authors = ["Marcos G. Zimmermann"]
8
8
  s.email = ["mgzmaster@gmail.com"]
9
9
  s.homepage = "https://github.com/marcosgz/capistrano-recipe"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marcosgz-cap-recipe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: