torquebox-capistrano-support 2.2.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright 2008-
|
1
|
+
# Copyright 2008-2013 Red Hat, Inc, and individual contributors.
|
2
2
|
#
|
3
3
|
# This is free software; you can redistribute it and/or modify it
|
4
4
|
# under the terms of the GNU Lesser General Public License as
|
@@ -78,6 +78,7 @@ module Capistrano
|
|
78
78
|
set( :jboss_home, lambda{ "#{torquebox_home}/jboss" } ) unless exists?( :jboss_home )
|
79
79
|
set( :jboss_control_style, :initd ) unless exists?( :jboss_control_style )
|
80
80
|
set( :jboss_init_script, '/etc/init.d/jboss-as-standalone' ) unless exists?( :jboss_init_script )
|
81
|
+
set( :jboss_runit_script, '/etc/service/torquebox/run' ) unless exists?( :jboss_runit_script)
|
81
82
|
set( :jboss_bind_address, '0.0.0.0' ) unless exists?( :jboss_bind_address )
|
82
83
|
|
83
84
|
set( :bundle_cmd, lambda{ "#{jruby_bin} -S bundle" } ) unless exists?( :bundle_cmd )
|
@@ -100,6 +101,8 @@ module Capistrano
|
|
100
101
|
run "#{jboss_init_script} start"
|
101
102
|
when :binscripts
|
102
103
|
run "nohup #{jboss_home}/bin/standalone.sh -b #{jboss_bind_address} < /dev/null > /dev/null 2>&1 &"
|
104
|
+
when :runit
|
105
|
+
run "#{sudo} sv start torquebox"
|
103
106
|
end
|
104
107
|
end
|
105
108
|
|
@@ -111,6 +114,8 @@ module Capistrano
|
|
111
114
|
run "JBOSS_HOME=#{jboss_home} #{jboss_init_script} stop"
|
112
115
|
when :binscripts
|
113
116
|
run "#{jboss_home}/bin/jboss-cli.sh --connect :shutdown"
|
117
|
+
when :runit
|
118
|
+
run "#{sudo} sv stop torquebox"
|
114
119
|
end
|
115
120
|
end
|
116
121
|
|
@@ -123,6 +128,9 @@ module Capistrano
|
|
123
128
|
when :binscripts
|
124
129
|
run "JBOSS_HOME=#{jboss_home} #{jboss_init_script} stop"
|
125
130
|
run "nohup #{jboss_home}/bin/standalone.sh -bpublic=#{jboss_bind_address} < /dev/null > /dev/null 2>&1 &"
|
131
|
+
when :runit
|
132
|
+
puts "Restarting TorqueBox AS"
|
133
|
+
run "#{sudo} sv restart torquebox"
|
126
134
|
end
|
127
135
|
end
|
128
136
|
|
@@ -135,11 +143,14 @@ module Capistrano
|
|
135
143
|
|
136
144
|
task :check do
|
137
145
|
puts "style #{jboss_control_style}"
|
138
|
-
|
139
|
-
|
146
|
+
case jboss_control_style
|
147
|
+
when :initd
|
148
|
+
run "test -x #{jboss_init_script}", :roles=>[ :app ]
|
149
|
+
when :runit
|
150
|
+
run "test -x #{jboss_runit_script}", :roles=>[ :app ]
|
140
151
|
end
|
141
152
|
run "test -d #{jboss_home}", :roles=>[ :app ]
|
142
|
-
unless ( [ :initd, :binscripts ].include?( jboss_control_style.to_sym ) )
|
153
|
+
unless ( [ :initd, :binscripts, :runit ].include?( jboss_control_style.to_sym ) )
|
143
154
|
fail "invalid jboss_control_style: #{jboss_control_style}"
|
144
155
|
end
|
145
156
|
end
|
metadata
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
name: torquebox-capistrano-support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 2.
|
5
|
+
version: 2.3.0
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- The TorqueBox Team
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jruby-openssl
|
@@ -83,8 +83,8 @@ extensions: []
|
|
83
83
|
extra_rdoc_files: []
|
84
84
|
files:
|
85
85
|
- licenses/lgpl-2.1.txt
|
86
|
-
- lib/org.torquebox.capistrano-support.rb
|
87
86
|
- lib/torquebox-capistrano-support.rb
|
87
|
+
- lib/org.torquebox.capistrano-support.rb
|
88
88
|
- lib/torquebox/capistrano/recipes.rb
|
89
89
|
- spec/recipes_spec.rb
|
90
90
|
- spec/spec_helper.rb
|
@@ -97,14 +97,14 @@ require_paths:
|
|
97
97
|
- lib
|
98
98
|
required_ruby_version: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
|
-
- -
|
100
|
+
- - ">="
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: !binary |-
|
103
103
|
MA==
|
104
104
|
none: false
|
105
105
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
|
-
- -
|
107
|
+
- - ">="
|
108
108
|
- !ruby/object:Gem::Version
|
109
109
|
version: !binary |-
|
110
110
|
MA==
|