torquebox 2.0.0.beta3 → 2.0.0.cr1
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.
- data/bin/torquebox +30 -3
- metadata +13 -13
data/bin/torquebox
CHANGED
@@ -29,13 +29,23 @@ class TorqueBoxCommand < Thor
|
|
29
29
|
map "run" => "start"
|
30
30
|
desc "run", "Run TorqueBox"
|
31
31
|
method_option :clustered, :type => :boolean, :desc => "Run TorqueBox in clustered mode"
|
32
|
+
method_option 'data-directory', :type => :string, :desc => 'Override the directory TorqueBox uses to store it runtime data'
|
33
|
+
method_option 'extra', :aliases => '-e', :type => :string, :desc => 'Extra options to pass through to JBoss AS, you will to escape dashes with \ (e.g. \--help)'
|
32
34
|
method_option 'max-threads', :type => :numeric, :desc => "Maximum number of HTTP threads"
|
33
35
|
method_option 'bind-address', :aliases => '-b', :type => :string, :desc => "IP address to bind to"
|
36
|
+
method_option 'node-name', :type => :string, :desc => 'Override the name of the node (which by default is the hostname)'
|
37
|
+
method_option 'port-offset', :type => :numeric, :desc => 'Offset all port numbers listened on by TorqueBox by this number'
|
38
|
+
method_option 'jvm-options', :aliases => '-J', :type => :string, :desc => 'Pass options on to the JVM'
|
34
39
|
def start
|
35
40
|
TorqueBox::Server.setup_environment
|
36
41
|
TorqueBox::DeployUtils.run_server(:clustered => options.clustered,
|
37
42
|
:max_threads => options['max-threads'],
|
38
|
-
:bind_address => options['bind-address']
|
43
|
+
:bind_address => options['bind-address'],
|
44
|
+
:port_offset => options['port-offset'],
|
45
|
+
:pass_through => options['extra'],
|
46
|
+
:node_name => options['node-name'],
|
47
|
+
:data_directory => options['data-directory'],
|
48
|
+
:jvm_options => options['jvm-options'])
|
39
49
|
end
|
40
50
|
|
41
51
|
desc "rails ROOT", "Create a Rails application at ROOT using the TorqueBox Rails template, or apply the TorqueBox template to an existing application at ROOT."
|
@@ -85,6 +95,11 @@ class TorqueBoxCommand < Thor
|
|
85
95
|
opts = {:root => root}.merge(options)
|
86
96
|
descriptor = TorqueBox::DeployUtils.basic_deployment_descriptor(opts)
|
87
97
|
deployed_name, deploy_dir = TorqueBox::DeployUtils.deploy_yaml(descriptor, opts)
|
98
|
+
failed_file = File.join( deploy_dir, "#{deployed_name}.failed" )
|
99
|
+
if File.exists? failed_file
|
100
|
+
puts "Removing failed descriptor: #{failed_file}"
|
101
|
+
FileUtils.rm( failed_file )
|
102
|
+
end
|
88
103
|
puts "Deployed: #{deployed_name}"
|
89
104
|
puts " into: #{deploy_dir}"
|
90
105
|
end
|
@@ -108,15 +123,27 @@ class TorqueBoxCommand < Thor
|
|
108
123
|
end
|
109
124
|
end
|
110
125
|
|
126
|
+
desc "list applications", "List applications deployed to TorqueBox and their deployment status"
|
127
|
+
def list(root = ".")
|
128
|
+
TorqueBox::Server.setup_environment
|
129
|
+
apps = TorqueBox::DeployUtils.deployment_status
|
130
|
+
puts "Nothing deployed." if apps.empty?
|
131
|
+
apps.each do |k,v|
|
132
|
+
puts k
|
133
|
+
puts " Descriptor: #{v[:descriptor]}"
|
134
|
+
puts " Status: #{v[:status]}"
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
111
138
|
desc "cli", "Run the JBoss AS7 CLI"
|
112
139
|
def cli
|
113
140
|
TorqueBox::Server.setup_environment
|
114
141
|
options = "--connect"
|
115
142
|
if Config::CONFIG['host_os'] =~ /mswin/
|
116
|
-
path = File.join(
|
143
|
+
path = File.join(ENV['JBOSS_HOME'], "bin\\jboss-cli")
|
117
144
|
exec(path, options)
|
118
145
|
else
|
119
|
-
path = "/bin/sh #{File.join(
|
146
|
+
path = "/bin/sh #{File.join(ENV['JBOSS_HOME'], 'bin/jboss-cli.sh')}"
|
120
147
|
exec "#{path} #{options}"
|
121
148
|
end
|
122
149
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: torquebox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease: 6
|
5
|
-
version: 2.0.0.
|
5
|
+
version: 2.0.0.cr1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- The TorqueBox Team
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-03-02 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: torquebox-core
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - "="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 2.0.0.
|
23
|
+
version: 2.0.0.cr1
|
24
24
|
type: :runtime
|
25
25
|
version_requirements: *id001
|
26
26
|
- !ruby/object:Gem::Dependency
|
@@ -31,7 +31,7 @@ dependencies:
|
|
31
31
|
requirements:
|
32
32
|
- - "="
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 2.0.0.
|
34
|
+
version: 2.0.0.cr1
|
35
35
|
type: :runtime
|
36
36
|
version_requirements: *id002
|
37
37
|
- !ruby/object:Gem::Dependency
|
@@ -42,7 +42,7 @@ dependencies:
|
|
42
42
|
requirements:
|
43
43
|
- - "="
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version: 2.0.0.
|
45
|
+
version: 2.0.0.cr1
|
46
46
|
type: :runtime
|
47
47
|
version_requirements: *id003
|
48
48
|
- !ruby/object:Gem::Dependency
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
requirements:
|
54
54
|
- - "="
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: 2.0.0.
|
56
|
+
version: 2.0.0.cr1
|
57
57
|
type: :runtime
|
58
58
|
version_requirements: *id004
|
59
59
|
- !ruby/object:Gem::Dependency
|
@@ -64,7 +64,7 @@ dependencies:
|
|
64
64
|
requirements:
|
65
65
|
- - "="
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: 2.0.0.
|
67
|
+
version: 2.0.0.cr1
|
68
68
|
type: :runtime
|
69
69
|
version_requirements: *id005
|
70
70
|
- !ruby/object:Gem::Dependency
|
@@ -75,7 +75,7 @@ dependencies:
|
|
75
75
|
requirements:
|
76
76
|
- - "="
|
77
77
|
- !ruby/object:Gem::Version
|
78
|
-
version: 2.0.0.
|
78
|
+
version: 2.0.0.cr1
|
79
79
|
type: :runtime
|
80
80
|
version_requirements: *id006
|
81
81
|
- !ruby/object:Gem::Dependency
|
@@ -86,7 +86,7 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 2.0.0.
|
89
|
+
version: 2.0.0.cr1
|
90
90
|
type: :runtime
|
91
91
|
version_requirements: *id007
|
92
92
|
- !ruby/object:Gem::Dependency
|
@@ -97,7 +97,7 @@ dependencies:
|
|
97
97
|
requirements:
|
98
98
|
- - "="
|
99
99
|
- !ruby/object:Gem::Version
|
100
|
-
version: 2.0.0.
|
100
|
+
version: 2.0.0.cr1
|
101
101
|
type: :runtime
|
102
102
|
version_requirements: *id008
|
103
103
|
- !ruby/object:Gem::Dependency
|
@@ -108,7 +108,7 @@ dependencies:
|
|
108
108
|
requirements:
|
109
109
|
- - "="
|
110
110
|
- !ruby/object:Gem::Version
|
111
|
-
version: 2.0.0.
|
111
|
+
version: 2.0.0.cr1
|
112
112
|
type: :runtime
|
113
113
|
version_requirements: *id009
|
114
114
|
- !ruby/object:Gem::Dependency
|
@@ -119,7 +119,7 @@ dependencies:
|
|
119
119
|
requirements:
|
120
120
|
- - "="
|
121
121
|
- !ruby/object:Gem::Version
|
122
|
-
version: 2.0.0.
|
122
|
+
version: 2.0.0.cr1
|
123
123
|
type: :runtime
|
124
124
|
version_requirements: *id010
|
125
125
|
- !ruby/object:Gem::Dependency
|
@@ -183,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
183
183
|
requirements: []
|
184
184
|
|
185
185
|
rubyforge_project:
|
186
|
-
rubygems_version: 1.8.
|
186
|
+
rubygems_version: 1.8.15
|
187
187
|
signing_key:
|
188
188
|
specification_version: 3
|
189
189
|
summary: TorqueBox Gem
|