pixelforce_recipes 1.4 → 1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/pixelforce_recipes.rb +16 -12
- data/lib/pixelforce_recipes/legacy_recipes/base.rb +1 -1
- data/lib/pixelforce_recipes/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f40e55ffb256c9c468b6a0f783889e4ea4f42dca
|
4
|
+
data.tar.gz: d752bcd16f3fa0017fc4f0cd732a2ddac037988f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 441eaecd80b0c50da3e70211c4efa2a4446f1c117a3d52fd33b6801035702c19f325a9d8cd9c8b14fc42c7b455351bedea9e2674f794406664a020fc0011de20
|
7
|
+
data.tar.gz: 0f1bb92ede4277bec0badf5bbb8cd9554c6419a659fc12e6e0c38fa811a729c75af738cda2f2b74e01923263ee3a0c6ec967e7623d798c1decb4e6236576e22c
|
data/Gemfile.lock
CHANGED
data/lib/pixelforce_recipes.rb
CHANGED
@@ -1,16 +1,20 @@
|
|
1
1
|
require "pixelforce_recipes/version"
|
2
2
|
require "capistrano"
|
3
3
|
|
4
|
-
if defined?(Capistrano::VERSION)
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
4
|
+
if defined?(Capistrano::VERSION)
|
5
|
+
if Capistrano::VERSION.to_s.split('.').first.to_i >= 3
|
6
|
+
require File.expand_path("#{File.dirname(__FILE__)}/pixelforce_recipes/capistrano_3_recipes/base")
|
7
|
+
require File.expand_path("#{File.dirname(__FILE__)}/pixelforce_recipes/capistrano_3_recipes/sidekiq")
|
8
|
+
require File.expand_path("#{File.dirname(__FILE__)}/pixelforce_recipes/capistrano_3_recipes/resque")
|
9
|
+
require File.expand_path("#{File.dirname(__FILE__)}/pixelforce_recipes/capistrano_3_recipes/logrotate")
|
10
|
+
require File.expand_path("#{File.dirname(__FILE__)}/pixelforce_recipes/capistrano_3_recipes/unicorn")
|
11
|
+
require File.expand_path("#{File.dirname(__FILE__)}/pixelforce_recipes/capistrano_3_recipes/puma")
|
12
|
+
else
|
13
|
+
require File.expand_path("#{File.dirname(__FILE__)}/pixelforce_recipes/legacy_recipes/base")
|
14
|
+
require File.expand_path("#{File.dirname(__FILE__)}/pixelforce_recipes/legacy_recipes/unicorn")
|
15
|
+
require File.expand_path("#{File.dirname(__FILE__)}/pixelforce_recipes/legacy_recipes/sidekiq")
|
16
|
+
require File.expand_path("#{File.dirname(__FILE__)}/pixelforce_recipes/legacy_recipes/resque")
|
17
|
+
require File.expand_path("#{File.dirname(__FILE__)}/pixelforce_recipes/legacy_recipes/puma")
|
18
|
+
require File.expand_path("#{File.dirname(__FILE__)}/pixelforce_recipes/legacy_recipes/logrotate")
|
19
|
+
end
|
16
20
|
end
|
@@ -3,7 +3,7 @@ if Capistrano::Configuration.instance(false)
|
|
3
3
|
Capistrano::Configuration.instance(true).load do |instance|
|
4
4
|
|
5
5
|
def template(from, to)
|
6
|
-
erb = File.read(File.expand_path("
|
6
|
+
erb = File.read(File.expand_path("../../templates/#{from}", __FILE__))
|
7
7
|
put ERB.new(erb).result(binding), to
|
8
8
|
end
|
9
9
|
|