mina-unicorn 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mina/unicorn/utility.rb +5 -5
- data/lib/mina/unicorn/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cda351c276897ba36d3fb181926c0d5acece0e14
|
4
|
+
data.tar.gz: b270e4d32c769141ef484987f0895eedd4918a5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e715606defb7a4c27758e1b939b8dfeeb8a91923bd34b98a05a6c3f390b4a31836cf278f3eec05513d5a7e4da1eb3293fbee738f409f446c0fa2f3f5e4fd2d05
|
7
|
+
data.tar.gz: 7e0234390e527f2ecb6baf9de697250dc3d5a22198cc76f2d9af12b5664516e5105cc222ccb73045250f413f8df51917b203e6d88de81e768dc0571d2c341b42
|
data/lib/mina/unicorn/utility.rb
CHANGED
@@ -51,10 +51,10 @@ module Mina
|
|
51
51
|
def kill_unicorn(signal)
|
52
52
|
script = <<-END
|
53
53
|
if #{unicorn_is_running?}; then
|
54
|
-
echo "Stopping Unicorn...";
|
54
|
+
echo "-----> Stopping Unicorn...";
|
55
55
|
#{unicorn_send_signal(signal)};
|
56
56
|
else
|
57
|
-
echo "Unicorn is not running.";
|
57
|
+
echo "-----> Unicorn is not running.";
|
58
58
|
fi;
|
59
59
|
END
|
60
60
|
|
@@ -67,14 +67,14 @@ module Mina
|
|
67
67
|
%Q%
|
68
68
|
if [ -e "#{unicorn_pid}" ]; then
|
69
69
|
if kill -0 `cat #{unicorn_pid}` > /dev/null 2>&1; then
|
70
|
-
echo "Unicorn is already running!";
|
70
|
+
echo "-----> Unicorn is already running!";
|
71
71
|
exit 0;
|
72
72
|
fi;
|
73
73
|
|
74
74
|
rm #{unicorn_pid};
|
75
75
|
fi;
|
76
76
|
|
77
|
-
echo "Starting Unicorn...";
|
77
|
+
echo "-----> Starting Unicorn...";
|
78
78
|
cd #{deploy_to}/#{current_path} && BUNDLE_GEMFILE=#{bundle_gemfile} #{unicorn_cmd} -c #{unicorn_config} -E #{unicorn_env} -D;
|
79
79
|
%
|
80
80
|
end
|
@@ -96,7 +96,7 @@ module Mina
|
|
96
96
|
def duplicate_unicorn
|
97
97
|
%Q%
|
98
98
|
if #{unicorn_is_running?}; then
|
99
|
-
echo "Duplicating Unicorn...";
|
99
|
+
echo "-----> Duplicating Unicorn...";
|
100
100
|
#{unicorn_send_signal('USR2')};
|
101
101
|
else
|
102
102
|
#{start_unicorn}
|
data/lib/mina/unicorn/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mina-unicorn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tab
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|