mina-rails-tools 0.1.5 → 0.1.6

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: 4ac646a5908cb9aca9a13adeec68e1ff94dd8cf9
4
- data.tar.gz: 8343d35a0327c0436673d7ba55a329f2161fa469
3
+ metadata.gz: ea17f38f2a04830990509fd0d1a0e566446d5096
4
+ data.tar.gz: 496372cda307abf7dd4545fb809718fcb27c15c9
5
5
  SHA512:
6
- metadata.gz: 14618d267fb7db1a13e8a8d03153353d5c578ffe604e44a4837f506d9d47d4734dc66535972de87430bc43d80af8fcdd0a3d460ba8ed24ae03193e1796378d93
7
- data.tar.gz: 15908838581d84b329c819f25704601e027c363a3fc0e7062fe084af237fd14708045961e5b3d46f80411f51ea75fae8579e115a6ae7a1d4a982d5224911cbc8
6
+ metadata.gz: ce0a8651f31a4de42189f44142db3a558e740f7781e5b0ca57202c2987e1761729b4b805e5f65f6738141c6dbb2ddec4cb7f504a2dc663575b559da8a7be66f9
7
+ data.tar.gz: 0bc5007462e0594038dd13c66014febefc33604618998057f969749e997bc59c6ee8fcc867773176a608569616dfa13bcd5bb7c6dbcf9f4f70e935c0767dee09
@@ -4,31 +4,31 @@ set :sudoer, "root"
4
4
  task :sudo do
5
5
  # set :user, sudoer
6
6
  set :sudo, true
7
- set :term_mode, :system
7
+ # set :term_mode, :system
8
8
  end
9
9
 
10
10
  task :user do
11
11
  # set :user, user
12
12
  set :sudo, false
13
- set :term_mode, :system
13
+ # set :term_mode, :system
14
14
  end
15
15
 
16
16
  task :setup => :environment do
17
- invoke :"extra:create_shared_paths"
17
+ invoke :"extra:create_shared_paths"
18
18
  invoke :"extra:upload"
19
-
19
+
20
20
  invoke :"nginx:upload"
21
-
21
+
22
22
  if use_unicorn
23
23
  invoke :'unicorn:upload'
24
-
24
+
25
25
  if use_god
26
26
  invoke :'unicorn:god:upload'
27
27
  end
28
28
  end
29
-
29
+
30
30
  command %{echo "-----> (!!!) You now need to run 'mina sudoer_setup' to run the parts that require sudoer user (!!!)"}
31
-
31
+
32
32
  # if sudoer?
33
33
  # command %{echo "-----> (!!!) You now need to run 'mina sudoer_setup' to run the parts that require sudoer user (!!!)"}
34
34
  # else
@@ -40,14 +40,14 @@ task :sudoer_setup do
40
40
  invoke :sudo
41
41
  invoke :'nginx:link'
42
42
  invoke :'nginx:restart'
43
-
43
+
44
44
  if use_unicorn
45
45
  invoke :'unicorn:link'
46
-
46
+
47
47
  if use_god
48
48
  invoke :'unicorn:god:link'
49
49
  end
50
- end
50
+ end
51
51
  end
52
52
 
53
53
  namespace :extra do
@@ -55,29 +55,29 @@ namespace :extra do
55
55
  folders = shared_paths.map do |path|
56
56
  path.gsub(/\/\S+\.\S+\Z/, "")
57
57
  end.uniq
58
-
58
+
59
59
  folders.map do |dir|
60
60
  command %{mkdir -p "#{deploy_to}/shared/#{dir}"}
61
61
  end
62
62
  end
63
-
63
+
64
64
  task :upload do
65
65
  base = File.join(Dir.pwd, "config", "deploy", "shared")
66
-
66
+
67
67
  Dir[File.join(base, "*")].map do |path|
68
68
  # File.directory?
69
69
  next if File.file?(path)
70
70
 
71
- upload_shared_folder(path, base)
71
+ upload_shared_folder(path, base)
72
72
  end
73
-
73
+
74
74
  base = File.join(Dir.pwd, "config", "deploy", "#{server}")
75
-
75
+
76
76
  Dir[File.join(base, "*")].map do |path|
77
77
  # File.directory?
78
78
  next if File.file?(path)
79
79
 
80
- upload_shared_folder(path, base)
80
+ upload_shared_folder(path, base)
81
81
  end
82
82
  end
83
83
  end
@@ -108,4 +108,4 @@ module Mina
108
108
  @commands = nil
109
109
  end
110
110
  end
111
- end
111
+ end
@@ -1,5 +1,5 @@
1
1
  module Mina
2
2
  module Extras
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mina-rails-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joey Lin