odania-static-pages 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 19174f40f54e21e3790229962c383ef68b15a79f
4
- data.tar.gz: 0ff3d92eec6680d814bfcf81358d80cc7cd5da4a
3
+ metadata.gz: e87ff149552068b031e640c61dc0620b8fda024f
4
+ data.tar.gz: 7dc936ada60f872026f2e2b65b89a34cccd6f2a8
5
5
  SHA512:
6
- metadata.gz: 3ae20100eb8c7bc404c831cd32b981ae561e2b880fcd75bed0f5aff278221ae932e263a6c570bbd0cdb6c23d483b72d74e7033b540cfc1f8d09b8ebc9b7cbed8
7
- data.tar.gz: e7a7cf492690e6f08aa1db9bd15d78f78f5f10df5ae653c947c6e1a11e1acf07b671775c454ab15b581dd5230082ab545a9ef69ca80021586883f53043586b74
6
+ metadata.gz: 2abd158ce29d3a29bcd4e505ec5ef551a9ea0d784dbb44c3b131353e1406c342f129dbc8b462b42d05d37b6711a9ced3faebdc6237b3c6fdb85eb80613666e5c
7
+ data.tar.gz: 88c10972d83d7e6a5f92f77b12802779a9078d883ca7917cbf8649e4d708fd2cf8db4f761408ae521326ba9028e5c77d41ba7f07de727c57f0628787eceb564c
@@ -35,7 +35,8 @@ module NginxHelper
35
35
  end
36
36
 
37
37
  puts 'Copy default vhost'
38
- FileUtils.cp File.join(@config.base_dir, 'templates', 'nginx', default_vhost_file), File.join(@nginx_conf_dir, 'default.conf')
38
+ renderer = ERB.new(File.read(File.join(@config.base_dir, 'templates', 'nginx', default_vhost_file)))
39
+ File.write File.join(@nginx_conf_dir, 'default.conf'), renderer.result(binding)
39
40
 
40
41
  puts 'Copy nginx.conf'
41
42
  FileUtils.cp File.join(@config.base_dir, 'templates', 'nginx', 'nginx.conf'), File.join(@nginx_dir, 'nginx.conf')
@@ -1,3 +1,3 @@
1
1
  module OdaniaStaticPages
2
- VERSION = '0.1.7'
2
+ VERSION = '0.1.8'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: odania-static-pages
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Petersen