factorylabs-fdlcap 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
data/fdlcap.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{fdlcap}
5
- s.version = "0.2.1"
5
+ s.version = "0.2.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Factory Design Labs"]
@@ -39,7 +39,7 @@ Capistrano::Configuration.instance(:must_exist).load do
39
39
 
40
40
  desc "Setup Nginx vhost config"
41
41
  task :vhost, :roles => :web do
42
- result = render_erb_template(File.dirname(__FILE__) + "/templates/nginx.vhost.conf.erb")
42
+ result = render_erb_template(File.join(File.dirname(__FILE__), '..','templates','nginx.vhost.conf.erb'))
43
43
  put result, "/tmp/nginx.vhost.conf"
44
44
  sudo "mkdir -p /etc/nginx/vhosts"
45
45
  sudo "cp /tmp/nginx.vhost.conf /etc/nginx/vhosts/#{application}.conf"
@@ -48,7 +48,7 @@ Capistrano::Configuration.instance(:must_exist).load do
48
48
 
49
49
  desc "Setup Nginx vhost auth config"
50
50
  task :vhost_auth, :roles => :web do
51
- result = render_erb_template(File.dirname(__FILE__) + "/templates/nginx.auth.conf.erb")
51
+ result = render_erb_template(File.join(File.dirname(__FILE__), '..','templates','nginx.auth.conf.erb'))
52
52
  put result, "/tmp/nginx.auth.conf"
53
53
  sudo "mkdir -p /etc/nginx/vhosts"
54
54
  sudo "cp /tmp/nginx.vhost.conf /etc/nginx/vhosts/#{application}.auth.conf"
@@ -74,7 +74,7 @@ Capistrano::Configuration.instance(:must_exist).load do
74
74
  task :conf, :roles => :web do
75
75
  if can_configure_nginx
76
76
 
77
- result = render_erb_template(File.dirname(__FILE__) + "/templates/nginx.conf.erb")
77
+ result = render_erb_template(File.join(File.dirname(__FILE__),'..','templates','nginx.conf.erb')
78
78
  put result, "/tmp/nginx.conf"
79
79
  sudo "cp /tmp/nginx.conf /etc/nginx/nginx.conf"
80
80
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: factorylabs-fdlcap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Factory Design Labs