magicmonkey 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,11 +1,13 @@
|
|
1
1
|
module Passenger
|
2
2
|
|
3
3
|
def self.start(args = {})
|
4
|
-
|
4
|
+
bundle_exec = 'bundle exec ' if args[:bundle_exec]
|
5
|
+
return "#{bundle_exec}passenger start -e production -p #{args[:port]} #{args[:app_server_options]} -d"
|
5
6
|
end
|
6
7
|
|
7
8
|
def self.stop(args = {})
|
8
|
-
|
9
|
+
bundle_exec = 'bundle exec ' if args[:bundle_exec]
|
10
|
+
return "#{bundle_exec}passenger stop -p #{args[:port]}"
|
9
11
|
end
|
10
12
|
|
11
13
|
def self.restart(args = {})
|
@@ -1,11 +1,13 @@
|
|
1
1
|
module Thin
|
2
2
|
|
3
3
|
def self.start(args = {})
|
4
|
-
|
4
|
+
bundle_exec = 'bundle exec ' if args[:bundle_exec]
|
5
|
+
return "#{bundle_exec}thin start -e production -p #{args[:port]} #{args[:app_server_options]} -d"
|
5
6
|
end
|
6
7
|
|
7
8
|
def self.stop(args = {})
|
8
|
-
|
9
|
+
bundle_exec = 'bundle exec ' if args[:bundle_exec]
|
10
|
+
return "#{bundle_exec}thin stop -p #{args[:port]}"
|
9
11
|
end
|
10
12
|
|
11
13
|
def self.restart(args = {})
|
@@ -95,6 +95,9 @@ module MagicMonkey
|
|
95
95
|
opts.on('--[no-]reload-apache', "Reload apache to load virtual host (default: #{o[:reload_apache]}).") do |r|
|
96
96
|
o[:reload_apache] = r
|
97
97
|
end
|
98
|
+
opts.on('--[no-]bundle-exec', "Use bundle exec to run application server (default: #{o[:bundle_exec]}).") do |b|
|
99
|
+
o[:bundle_exec] = b
|
100
|
+
end
|
98
101
|
opts.on_tail('-v', '--version', 'Print version') { puts Magicmonkey::VERSION; exit }
|
99
102
|
opts.on_tail('-h', '--help', 'Show this help message') { puts opts; exit }
|
100
103
|
end
|
data/lib/magicmonkey/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: magicmonkey
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-06-07 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cocaine
|
16
|
-
requirement: &
|
16
|
+
requirement: &70180865465020 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70180865465020
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: term-ansicolor
|
27
|
-
requirement: &
|
27
|
+
requirement: &70180865464600 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70180865464600
|
36
36
|
description: ! 'Manage your Rails applications: different Ruby versions and different
|
37
37
|
application servers.'
|
38
38
|
email:
|