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: 9159c2fd9b85e82ad2b330e4bc77a16c1cc3e00a
4
- data.tar.gz: feda5e7a6bd23172c81b025517c12abf58199b51
3
+ metadata.gz: b5be8a995532a0f737fb4834eb29b642568badb4
4
+ data.tar.gz: 65c5bc5a6a91d7a416a58e41025e559fc88513c4
5
5
  SHA512:
6
- metadata.gz: 039c289dba5a18f5872a118c2776a16693f6c767515f8a3e58f46b2cd997622da7929c61a50ee4461f2f5521f1932d8412497e79f9345695626a29ca6d4aa098
7
- data.tar.gz: d85cc178cdfeb8aaf3bbbfcb2a92deee2fd1105c5f9297d963c69efb2345c5913a6c22a9057927661a1c0a69f81347f648544332dd6b503f9eac29d4772fe409
6
+ metadata.gz: 1a148a92e1e8e525c7efce877d511a5dac92c68f6b0e1b8784f4d1adb4abf305e9b23230505d5739a39ffd8927afe708fe919839863a4d2142cbf17bb02af28b
7
+ data.tar.gz: b07dd1cafc966322a0857f3cf935f3de8cf48e1e649bd88c728eeeb09987add693bcd9f741da1b12ef1efd10d9ebbff246897f0659b0565a5a98d41c1fe06a4d
@@ -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
 
@@ -15,9 +15,9 @@
15
15
  # d.from_jid = "foo@synbioz.com"
16
16
  # d.password = "bar"
17
17
  # end
18
- #
18
+ #
19
19
  # God.contact(:jabber) do |c|
20
20
  # d.to_jid = "alfuken@gmail.com"
21
21
  # end
22
22
 
23
- God.load "<%= god_path %>/conf/*.god"
23
+ God.load "<%= fetch(:god_path) %>/conf/*.god"
@@ -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) %>;
@@ -1,5 +1,5 @@
1
1
  module Mina
2
2
  module Extras
3
- VERSION = "0.2.4"
3
+ VERSION = "0.2.5"
4
4
  end
5
5
  end
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
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-16 00:00:00.000000000 Z
11
+ date: 2017-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler