capistrano-nginx-unicorn 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,12 +1,16 @@
1
1
  require 'capistrano'
2
2
 
3
3
  Capistrano::Configuration.instance.load do
4
+ def set_default(name, *args, &block)
5
+ set(name, *args, &block) unless exists?(name)
6
+ end
7
+
4
8
  set_default(:templates_path, "config/deploy/templates")
5
9
 
6
10
  set_default(:nginx_server_name) { Capistrano::CLI.ui.ask "Nginx server name: " }
7
11
  set_default(:nginx_use_ssl, false)
8
- set_default(:nginx_ssl_certificate, "#{nginx_server_name}.crt")
9
- set_default(:nginx_ssl_certificate_key, "#{nginx_server_name}.key")
12
+ set_default(:nginx_ssl_certificate) { "#{nginx_server_name}.crt" }
13
+ set_default(:nginx_ssl_certificate_key) { "#{nginx_server_name}.key" }
10
14
  set_default(:nginx_ssl_certificate_local_path) {Capistrano::CLI.ui.ask "Local path to ssl certificate: "}
11
15
  set_default(:nginx_ssl_certificate_key_local_path) {Capistrano::CLI.ui.ask "Local path to ssl certificate key: "}
12
16
 
@@ -84,4 +88,5 @@ Capistrano::Configuration.instance.load do
84
88
  end
85
89
  put ERB.new(File.read(config_file)).result(binding), target
86
90
  end
91
+
87
92
  end
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module NginxUnicorn
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-nginx-unicorn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
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: 2012-12-03 00:00:00.000000000 Z
12
+ date: 2012-12-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  prerelease: false
@@ -80,7 +80,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
80
80
  version: '0'
81
81
  segments:
82
82
  - 0
83
- hash: 1031538304878768705
83
+ hash: 123580793249868030
84
84
  none: false
85
85
  required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  requirements:
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
89
89
  version: '0'
90
90
  segments:
91
91
  - 0
92
- hash: 1031538304878768705
92
+ hash: 123580793249868030
93
93
  none: false
94
94
  requirements: []
95
95
  rubyforge_project: