magic_recipes_two 0.0.1 → 0.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 56effa6ddf903dbc84cbfc4acced248845b2a662
4
- data.tar.gz: ed01018984b79af0391bd7c2d8c0b0c88c1e3902
3
+ metadata.gz: bfea4cf22cc935dd51e1c0ed589939e26b22aea7
4
+ data.tar.gz: 0ce7bda267d8e0beb1d6b8f39682a66531d5e1a2
5
5
  SHA512:
6
- metadata.gz: 1ac9e72c5703e3942ce69e9b946dcaec8976ac6ce491ab0478c3fb19751d4805e7077dbfb09ddc0fd71910836fc95b7dde57dc4ec92677bfe0d0a5d06afc7235
7
- data.tar.gz: 9966fb7bfc7d42028bc4b14868f6a77e0ae108b3ff2cbd589c44a9be9fac3bbf21397d8333954fde3b24e3fb8d3e205b08ab38db8d89c80435e7389a39523916
6
+ metadata.gz: 1ec01565bef2d3dc622b1a7924463da912212518fc70227bfe4de52d780091aeb19b0ee76726541104a3a4aebae1c6692afeb4ccb196a7afcbe0c39573d50654
7
+ data.tar.gz: 23338b8914d7a3732580131d497cb7cc5b4733736ce5e711e81ef81a1625c2b53ca96cc194b8e7f10e83830030c8e0d9c20ac300097455a7700640c0e2277528
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module MagicRecipes
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -57,12 +57,14 @@ namespace :nginx do
57
57
  within fetch(:sites_available) do
58
58
  config_file = fetch(:nginx_template)
59
59
  if config_file == :default
60
- # config_file = File.expand_path("../../../../config/deploy/templates/nginx.conf.erb", __FILE__)
61
- magic_template("nginx.conf", '/tmp/nginx.conf')
60
+ # config_file = File.expand_path("../../../../config/deploy/templates/nginx.conf.erb", __FILE__)
61
+ magic_template("nginx.conf", '/tmp/nginx.conf')
62
+ else
63
+ template(config_file, '/tmp/nginx.conf')
62
64
  end
63
65
  # config = ERB.new(File.read(config_file)).result(binding)
64
66
  # upload! StringIO.new(config), '/tmp/nginx.conf'
65
- template(config_file, '/tmp/nginx.conf')
67
+
66
68
 
67
69
  execute :sudo, :mv, '/tmp/nginx.conf', "#{fetch(:application)}_#{fetch(:stage)}"
68
70
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magic_recipes_two
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Torsten Wetzel