kapify 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,7 @@ Capistrano::Configuration.instance.load do
6
6
  set_default(:nginx_use_ssl, false)
7
7
  set_default(:nginx_ssl_certificate) { "#{nginx_server_name}.crt" }
8
8
  set_default(:nginx_ssl_certificate_key) { "#{nginx_server_name}.key" }
9
- set_default(:nginx_ssl_certificate_local_path) {Capistrano::CLI.ui.ask "Local path to ssl certificate: "}
9
+ set_default(:nginx_ssl_certificate_local_path) {Capistrano::CLI.ui.ask "Local path to ssl certificate (leave blank to skip): "}
10
10
  set_default(:nginx_ssl_certificate_key_local_path) {Capistrano::CLI.ui.ask "Local path to ssl certificate key: "}
11
11
 
12
12
  namespace :kapify do
@@ -17,7 +17,7 @@ Capistrano::Configuration.instance.load do
17
17
  run "#{sudo} mv /tmp/#{application} /etc/nginx/sites-available/#{application}"
18
18
  run "#{sudo} ln -fs /etc/nginx/sites-available/#{application} /etc/nginx/sites-enabled/#{application}"
19
19
 
20
- if nginx_use_ssl
20
+ if nginx_use_ssl && !nginx_ssl_certificate_local_path.empty?
21
21
  put File.read(nginx_ssl_certificate_local_path), "/tmp/#{nginx_ssl_certificate}"
22
22
  put File.read(nginx_ssl_certificate_key_local_path), "/tmp/#{nginx_ssl_certificate_key}"
23
23
 
@@ -1,3 +1,3 @@
1
1
  module Kapify
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kapify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -105,7 +105,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
105
105
  version: '0'
106
106
  segments:
107
107
  - 0
108
- hash: 1261901471438574663
108
+ hash: 197519462626157916
109
109
  none: false
110
110
  required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  requirements:
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
114
  version: '0'
115
115
  segments:
116
116
  - 0
117
- hash: 1261901471438574663
117
+ hash: 197519462626157916
118
118
  none: false
119
119
  requirements: []
120
120
  rubyforge_project: