mina-rails-tools 0.2.4 → 0.2.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5be8a995532a0f737fb4834eb29b642568badb4
|
4
|
+
data.tar.gz: 65c5bc5a6a91d7a416a58e41025e559fc88513c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a148a92e1e8e525c7efce877d511a5dac92c68f6b0e1b8784f4d1adb4abf305e9b23230505d5739a39ffd8927afe708fe919839863a4d2142cbf17bb02af28b
|
7
|
+
data.tar.gz: b07dd1cafc966322a0857f3cf935f3de8cf48e1e649bd88c728eeeb09987add693bcd9f741da1b12ef1efd10d9ebbff246897f0659b0565a5a98d41c1fe06a4d
|
data/lib/mina/extras/god.rb
CHANGED
@@ -17,20 +17,20 @@ namespace :god do
|
|
17
17
|
extra_echo "Relocate god script file"
|
18
18
|
command %{sudo rm -rf "#{fetch(:god_service_path)}/god"}
|
19
19
|
command "sudo mkdir -p #{fetch(:god_path)}/conf"
|
20
|
-
command "sudo chown -R #{user} #{fetch(:god_path)}"
|
20
|
+
command "sudo chown -R #{fetch(:user)} #{fetch(:god_path)}"
|
21
21
|
command %{sudo cp "#{fetch(:god_path)}/god.sh" "#{fetch(:god_service_path)}/god"}
|
22
|
-
command %{sudo chown #{god_user}:#{god_group} "#{fetch(:god_service_path)}/god"}
|
22
|
+
command %{sudo chown #{fetch(:god_user)}:#{fetch(:god_group)} "#{fetch(:god_service_path)}/god"}
|
23
23
|
command %{sudo chmod +x "#{fetch(:god_service_path)}/god"}
|
24
|
-
command "sudo chown -R #{god_user}:#{god_group} #{fetch(:god_path)}"
|
24
|
+
command "sudo chown -R #{fetch(:god_user)}:#{fetch(:god_group)} #{fetch(:god_path)}"
|
25
25
|
command "sudo update-rc.d god defaults"
|
26
26
|
end
|
27
27
|
|
28
28
|
task :tmp_add_permission do
|
29
|
-
command "sudo chown -R #{user} #{fetch(:god_path)}"
|
29
|
+
command "sudo chown -R #{fetch(:user)} #{fetch(:god_path)}"
|
30
30
|
end
|
31
31
|
|
32
32
|
task :set_permission do
|
33
|
-
command "sudo chown -R #{god_user}:#{god_group} #{fetch(:god_path)}"
|
33
|
+
command "sudo chown -R #{fetch(:god_user)}:#{fetch(:god_group)} #{fetch(:god_path)}"
|
34
34
|
end
|
35
35
|
|
36
36
|
task :upload => [:'upload:script', :'upload:global']
|
@@ -38,16 +38,16 @@ namespace :god do
|
|
38
38
|
namespace :upload do
|
39
39
|
task :script do
|
40
40
|
command "sudo mkdir -p #{fetch(:god_path)}/conf"
|
41
|
-
command "sudo chown -R #{user} #{fetch(:god_path)}"
|
41
|
+
command "sudo chown -R #{fetch(:user)} #{fetch(:god_path)}"
|
42
42
|
upload_file "god.sh", "#{fetch(:god_path)}/god.sh"
|
43
|
-
command "sudo chown -R #{god_user}:#{god_group} #{fetch(:god_path)}"
|
43
|
+
command "sudo chown -R #{fetch(:god_user)}:#{fetch(:god_group)} #{fetch(:god_path)}"
|
44
44
|
end
|
45
45
|
|
46
46
|
task :global do
|
47
47
|
command "sudo mkdir -p #{fetch(:god_path)}/conf"
|
48
|
-
command "sudo chown -R #{user} #{fetch(:god_path)}"
|
48
|
+
command "sudo chown -R #{fetch(:user)} #{fetch(:god_path)}"
|
49
49
|
upload_file 'global.god', "#{fetch(:god_path)}/global.god"
|
50
|
-
command "sudo chown -R #{god_user}:#{god_group} #{fetch(:god_path)}"
|
50
|
+
command "sudo chown -R #{fetch(:god_user)}:#{fetch(:god_group)} #{fetch(:god_path)}"
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
@@ -7,9 +7,9 @@
|
|
7
7
|
#
|
8
8
|
|
9
9
|
RETVAL=0
|
10
|
-
GOD_PID="<%= god_pid_path %>/god.pid"
|
11
|
-
GOD_LOG="<%= god_log_path %>/god.log"
|
12
|
-
GOD_CONF="<%= god_path %>/global.god"
|
10
|
+
GOD_PID="<%= fetch(:god_pid_path) %>/god.pid"
|
11
|
+
GOD_LOG="<%= fetch(:god_log_path) %>/god.log"
|
12
|
+
GOD_CONF="<%= fetch(:god_path) %>/global.god"
|
13
13
|
GOD_BIN="/usr/local/bin/god"
|
14
14
|
|
15
15
|
case "$1" in
|
@@ -36,4 +36,4 @@ case "$1" in
|
|
36
36
|
;;
|
37
37
|
esac
|
38
38
|
|
39
|
-
exit $RETVAL
|
39
|
+
exit $RETVAL
|
@@ -2,7 +2,7 @@ upstream unicorn-<%= fetch(:app) %> {
|
|
2
2
|
server unix:/tmp/unicorn.<%= fetch(:app) %>.socket fail_timeout=0;
|
3
3
|
}
|
4
4
|
|
5
|
-
# <%= app %> Server
|
5
|
+
# <%= fetch(:app) %> Server
|
6
6
|
server {
|
7
7
|
listen <%= fetch(:nginx_port) %><%= ' default' if fetch(:nginx_default) %>;
|
8
8
|
server_name <%= fetch(:domain) %>;
|
data/lib/mina/extras/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mina-rails-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joey Lin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|