rsence 2.0.0.5.pre → 2.0.0.6.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +2 -2
- data/VERSION +1 -1
- data/bin/rsence +4 -1
- data/conf/default_conf.yaml +1 -1
- data/conf/rsence_command_strings.yaml +444 -0
- data/js/comm/comm/autosync/autosync.js +1 -1
- data/js/comm/comm/comm.js +1 -1
- data/js/comm/comm/queue/queue.js +1 -1
- data/js/comm/comm/session/session.js +1 -1
- data/js/comm/comm/sessionwatcher/sessionwatcher.js +1 -1
- data/js/comm/comm/transporter/transporter.js +1 -1
- data/js/comm/comm/urlresponder/urlresponder.js +1 -1
- data/js/comm/comm/values/values.js +1 -1
- data/js/comm/jsloader/jsloader.js +1 -1
- data/js/comm/reloadapp/reloadapp.js +1 -1
- data/js/comm/sha/sha.js +1 -1
- data/js/comm/values/value/value.js +1 -1
- data/js/comm/values/valuematrix/valuematrix.js +1 -1
- data/js/controls/button/button.js +1 -1
- data/js/controls/checkbox/checkbox.js +1 -1
- data/js/controls/datetime/calendar/calendar.js +1 -1
- data/js/controls/datetime/datetimevalue/datetimevalue.js +1 -1
- data/js/controls/datetime/timesheet/timesheet.js +1 -1
- data/js/controls/datetime/timesheet_item/timesheet_item.js +1 -1
- data/js/controls/datetime/timesheet_item_edit/timesheet_item_edit.js +1 -1
- data/js/controls/dialogs/alert_sheet/alert_sheet.js +1 -1
- data/js/controls/dialogs/confirm_sheet/confirm_sheet.js +1 -1
- data/js/controls/dialogs/sheet/sheet.js +1 -1
- data/js/controls/imageview/imageview.js +1 -1
- data/js/controls/lists/checkboxlist/checkboxlist.js +1 -1
- data/js/controls/lists/listitems/listitems.js +1 -1
- data/js/controls/lists/radiobuttonlist/radiobuttonlist.js +1 -1
- data/js/controls/passwordcontrol/passwordcontrol.js +1 -1
- data/js/controls/progress/progressbar/progressbar.js +1 -1
- data/js/controls/progress/progressindicator/progressindicator.js +1 -1
- data/js/controls/radiobutton/radiobutton.js +1 -1
- data/js/controls/sliders/slider/slider.js +1 -1
- data/js/controls/sliders/vslider/vslider.js +1 -1
- data/js/controls/stepper/stepper.js +1 -1
- data/js/controls/stringview/stringview.js +1 -1
- data/js/controls/tab/tab.js +1 -1
- data/js/controls/textarea/textarea.js +1 -1
- data/js/controls/textcontrol/textcontrol.js +1 -1
- data/js/controls/uploader/uploader.js +1 -1
- data/js/controls/validatorview/validatorview.js +6 -2
- data/js/controls/window/window.js +1 -1
- data/js/core/class/class.js +1 -1
- data/js/core/elem/elem.js +1 -1
- data/js/core/event/event.js +1 -1
- data/js/core/iefix/iefix.js +1 -1
- data/js/foundation/application/application.js +1 -1
- data/js/foundation/control/control.js +1 -1
- data/js/foundation/control/controldefaults/controldefaults.js +1 -1
- data/js/foundation/control/dummyvalue/dummyvalue.js +1 -1
- data/js/foundation/control/dyncontrol/dyncontrol.js +1 -1
- data/js/foundation/control/eventresponder/eventresponder.js +1 -1
- data/js/foundation/control/valueresponder/valueresponder.js +1 -1
- data/js/foundation/geom/point/point.js +1 -1
- data/js/foundation/geom/rect/rect.js +1 -1
- data/js/foundation/json_renderer/json_renderer.js +1 -1
- data/js/foundation/system/system.js +1 -1
- data/js/foundation/thememanager/thememanager.js +1 -1
- data/js/foundation/view/markupview/markupview.js +1 -1
- data/js/foundation/view/morphanimation/morphanimation.js +1 -1
- data/js/foundation/view/view.js +1 -1
- data/js/foundation/view/viewdefaults/viewdefaults.js +1 -1
- data/js/views/centerview/centerview.js +1 -1
- data/js/views/inlineview/inlineview.js +1 -1
- data/js/views/scrollview/scrollview.js +1 -1
- data/lib/conf/argv.rb +719 -1006
- data/lib/conf/default.rb +14 -3
- data/lib/daemon/daemon.rb +1 -1
- data/lib/daemon/sigcomm.rb +1 -1
- data/lib/http/broker.rb +5 -1
- data/lib/http/rackup.rb +1 -1
- data/lib/http/request.rb +1 -1
- data/lib/http/response.rb +2 -2
- data/lib/plugins/dependencies.rb +36 -0
- data/lib/plugins/gui_plugin.rb +83 -80
- data/lib/plugins/guiparser.rb +7 -3
- data/lib/plugins/plugin.rb +308 -307
- data/lib/plugins/plugin_plugins.rb +5 -1
- data/lib/plugins/plugin_sqlite_db.rb +5 -1
- data/lib/plugins/plugin_util.rb +22 -0
- data/lib/plugins/pluginmanager.rb +95 -95
- data/lib/plugins/plugins.rb +117 -0
- data/lib/plugins/servlet.rb +47 -57
- data/lib/session/msg.rb +1 -1
- data/lib/session/sessionmanager.rb +1 -1
- data/lib/session/sessionstorage.rb +2 -2
- data/lib/transporter/transporter.rb +1 -2
- data/lib/values/hvalue.rb +7 -3
- data/lib/values/valuemanager.rb +7 -1
- data/plugins/client_pkg/client_pkg.rb +15 -48
- data/plugins/client_pkg/info.yaml +1 -1
- data/plugins/client_pkg/lib/client_pkg_build.rb +1 -1
- data/plugins/client_pkg/lib/client_pkg_cache.rb +1 -1
- data/plugins/index_html/index_html.rb +5 -6
- data/plugins/index_html/info.yaml +21 -0
- data/plugins/index_html/tmpl/index.html +1 -1
- data/plugins/index_html/tmpl/startup_index.html +1 -1
- data/plugins/main/info.yaml +21 -0
- data/plugins/main/main.rb +1 -5
- data/plugins/{ticketservices → ticket}/lib/common.rb +92 -2
- data/plugins/{ticketservices → ticket}/lib/favicon.rb +1 -1
- data/plugins/{ticketservices → ticket}/lib/file.rb +1 -1
- data/plugins/{ticketservices → ticket}/lib/img.rb +1 -1
- data/plugins/{ticketservices → ticket}/lib/objblob.rb +1 -1
- data/plugins/{ticketservices → ticket}/lib/rsrc.rb +1 -1
- data/plugins/{ticketservices → ticket}/lib/upload.rb +60 -31
- data/plugins/{ticketservices/ticketservices.rb → ticket/ticket.rb} +50 -118
- data/{plugins → setup}/legacy/info.yaml +0 -0
- data/{plugins → setup}/legacy/legacy.rb +2 -0
- data/setup/welcome/welcome.rb +1 -1
- metadata +27 -21
- data/conf/config.yaml +0 -4
- data/conf/local_conf.yaml.devel +0 -14
- data/lib/conf/wizard.rb +0 -303
- data/plugins/client_pkg/log/build_log +0 -0
- data/plugins/legacy/disabled +0 -0
- data/plugins/legacy/disabled- +0 -0
data/README.rdoc
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
= RSence 2.0.0.
|
2
|
+
= RSence 2.0.0.6.pre 2010-??-??
|
3
3
|
|
4
4
|
http://rsence.org/
|
5
5
|
|
@@ -12,7 +12,7 @@ RSence is primarily a flexible and high-performance RIA framework aimed on build
|
|
12
12
|
|
13
13
|
gem install rsence --pre
|
14
14
|
|
15
|
-
== Setting up a project
|
15
|
+
== Setting up a project
|
16
16
|
|
17
17
|
rsence initenv /path/of/project
|
18
18
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.0.
|
1
|
+
2.0.0.6.pre
|
data/bin/rsence
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
#--
|
3
|
-
##
|
3
|
+
## RSence
|
4
4
|
# Copyright 2010 Riassence Inc.
|
5
5
|
# http://riassence.com/
|
6
6
|
#
|
@@ -18,7 +18,10 @@ SERVER_PATH = File.split( File.expand_path(File.dirname(__FILE__)) )[0]
|
|
18
18
|
$LOAD_PATH << SERVER_PATH
|
19
19
|
$LOAD_PATH << File.join( SERVER_PATH, 'lib' )
|
20
20
|
|
21
|
+
# Requires the ARGVParser that functions as the command-line user interface.
|
21
22
|
require 'conf/argv'
|
22
23
|
|
24
|
+
# Start RSence, if the command supplied was one of the ones
|
25
|
+
# triggering a start and the environment is ok.
|
23
26
|
RSence.startup if RSence.startable?
|
24
27
|
|
data/conf/default_conf.yaml
CHANGED
@@ -126,7 +126,7 @@
|
|
126
126
|
# If enabled, also check the maximum number of clones allowed in
|
127
127
|
# :session_cookie_max_clones
|
128
128
|
# Defaults to false, will be the default in a future version.
|
129
|
-
:clone_cookie_sessions:
|
129
|
+
:clone_cookie_sessions: true
|
130
130
|
#
|
131
131
|
# This limits the amount of cloned targets of a source session.
|
132
132
|
# NOTE: This has no effect yet, the code is not implemented.
|
@@ -0,0 +1,444 @@
|
|
1
|
+
# Strings for various methods
|
2
|
+
:messages:
|
3
|
+
:invalid_option_expected_number: |+
|
4
|
+
Invalid option for <%%= option_name.to_s %>:
|
5
|
+
Expected number, got: <%%= arg.inspect %>.
|
6
|
+
|
7
|
+
Type 'rsence help <%%= @cmd.to_s %>' for usage.
|
8
|
+
:no_such_configuration_file: |+
|
9
|
+
No such configuration file:
|
10
|
+
<%%= arg.inspect %>
|
11
|
+
|
12
|
+
Type 'rsence help <%%= @cmd.to_s %>' for usage.
|
13
|
+
:no_value_for_option: |+
|
14
|
+
No value for option:
|
15
|
+
<%%= option_name.to_s.inspect %>
|
16
|
+
|
17
|
+
Type 'rsence help <%%= @cmd.to_s %> for usage."
|
18
|
+
:no_such_directory: |
|
19
|
+
No such directory:
|
20
|
+
<%%= path.inspect %>
|
21
|
+
:not_a_directory: |
|
22
|
+
Not a directory:
|
23
|
+
<%%= path.inspect %>
|
24
|
+
:missing_conf_directory: |
|
25
|
+
Missing conf directory:
|
26
|
+
<%%= conf_path.inspect %>
|
27
|
+
:invalid_conf_directory: |
|
28
|
+
Not a conf directory:
|
29
|
+
<%%= conf_path.inspect %>
|
30
|
+
:missing_conf_file: |
|
31
|
+
Missing conf file:
|
32
|
+
<%%= conf_file.inspect %>
|
33
|
+
:invalid_conf_file_not_file: |
|
34
|
+
Invalid conf file, not a file:
|
35
|
+
<%%= conf_file.inspect %>
|
36
|
+
:warn_no_plugin_directory_in_project: |
|
37
|
+
Warning! No plugin directory in project, expected:
|
38
|
+
<%%= plugin_path.inspect %>
|
39
|
+
:plugin_directory_not_a_directory: |
|
40
|
+
Plugin directory not a directory, expected:
|
41
|
+
<%%= plugin_path.inspect %>
|
42
|
+
:warn_no_plugin_directory_in_project: |
|
43
|
+
Warning! No <%%= dir_name %> directory in project, creating:
|
44
|
+
<%%= dir_path.inspect %>
|
45
|
+
:invalid_environment: |
|
46
|
+
Invalid environment: <%%= env_path.inspect %>
|
47
|
+
|
48
|
+
Type 'rsence help <%%= @cmd.to_s %>' for usage."
|
49
|
+
Type 'rsence help initenv' for environment initialization usage."
|
50
|
+
:invalid_option_chr: |
|
51
|
+
Invalid option character for option character block <%%= arg.inspect %>:
|
52
|
+
<%%= chr.inspect %>
|
53
|
+
|
54
|
+
Type 'rsence help <%%= @cmd.to_s %>' for usage."
|
55
|
+
:invalid_option: |
|
56
|
+
Invalid option:
|
57
|
+
<%%= arg.inspect %>.
|
58
|
+
|
59
|
+
Type 'rsence help <%%= @cmd.to_s %>' for usage."
|
60
|
+
:no_pid: |
|
61
|
+
No PID, unable to check process status.
|
62
|
+
:no_pid_file: |
|
63
|
+
No PID file, unable to check process status.
|
64
|
+
:no_pid_support: |
|
65
|
+
No PID support, unable to check process status.
|
66
|
+
:no_process_running_but_something_responds: |
|
67
|
+
No process running, but something responds on <%%= addr %>:<%%= port %>.
|
68
|
+
:no_process_running_and_nothing_responds: |
|
69
|
+
No process running, and nothing responds on <%%= addr %>:<%%= port %>.
|
70
|
+
:process_running_and_responds: |
|
71
|
+
Process ID <%%= pid %> is running and responds on <%%= addr %>:<%%= port %>.
|
72
|
+
:process_running_but_nothing_responds: |
|
73
|
+
Process ID <%%= pid %> is running, but does not respond on <%%= addr %>:<%%= port %>.
|
74
|
+
:saving_message: <
|
75
|
+
Saving session data...
|
76
|
+
:no_pid_unable_to_save: |
|
77
|
+
No PID, unable to signal the save command to the process.
|
78
|
+
:no_process_running: |
|
79
|
+
No process running.
|
80
|
+
:session_data_saved: |
|
81
|
+
Session data saved.
|
82
|
+
# Strings for the initenv command
|
83
|
+
:initenv:
|
84
|
+
:env_already_initialized: |
|
85
|
+
Environment already initialized.
|
86
|
+
:env_not_empty: |
|
87
|
+
Environment directory <%%= @args[:env_path] %> is not empty.
|
88
|
+
:creating_env: |+
|
89
|
+
|
90
|
+
Creating a new RSence environment at <%%= @args[:env_path] %>
|
91
|
+
|
92
|
+
RSence will first ask a few questions about your environment
|
93
|
+
in order to initialize and prepare the project configuration.
|
94
|
+
|
95
|
+
You may abort this command at any time by pressing CTRL-C
|
96
|
+
Nothing will be written until you have answered all the questions.
|
97
|
+
|
98
|
+
Pressing the ENTER (or RETURN) key at each prompt will choose the
|
99
|
+
default option shown.
|
100
|
+
If you are not sure about how to answer a question, press
|
101
|
+
the ENTER (or RETURN) key to continue.
|
102
|
+
|
103
|
+
:enter_title: |+
|
104
|
+
|
105
|
+
Please enter the title of your project.
|
106
|
+
This title will be used in the default page title.
|
107
|
+
|
108
|
+
:project_title: Project Title
|
109
|
+
:enter_db_url: |+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
Please specify the connection string for the session database to use.
|
114
|
+
By default, a local SQLite database is created in the 'db' subdirectory
|
115
|
+
of the environment directory. Any database supported by Sequel is supported
|
116
|
+
by RSence.
|
117
|
+
|
118
|
+
For further information about database connection strings, read the Sequel
|
119
|
+
documentation at:
|
120
|
+
http://sequel.rubyforge.org/rdoc/files/doc/opening_databases_rdoc.html
|
121
|
+
|
122
|
+
You will also need the appropriate ruby driver for the database selected. If
|
123
|
+
none is installed, RSence will not be able to store persistent session data
|
124
|
+
between server restarts.
|
125
|
+
|
126
|
+
:db_url: Session database connection string
|
127
|
+
:enter_http_port: |+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
Please enter a HTTP port for the server to listen to. This port must not be a
|
132
|
+
TCP port already in use.
|
133
|
+
|
134
|
+
:http_port: HTTP Port
|
135
|
+
:enter_tcp_ip: |+
|
136
|
+
|
137
|
+
|
138
|
+
Please enter a TCP/IP address for the HTTP server to listen to. This address
|
139
|
+
must be an address configured by a network interface of this computer.
|
140
|
+
|
141
|
+
The address 0.0.0.0 matches any interfaces.
|
142
|
+
The address 127.0.0.1 matches only the localhost address, this address is
|
143
|
+
not accessible from any other computer.
|
144
|
+
|
145
|
+
:tcp_ip: Interface TCP/IP address
|
146
|
+
:enter_root_dir: |+
|
147
|
+
|
148
|
+
|
149
|
+
Please enter a root directory for RSence to respond in.
|
150
|
+
By default this is the root directory of the server: /
|
151
|
+
|
152
|
+
:root_dir: URI Prefix
|
153
|
+
:config_summary: |+
|
154
|
+
|
155
|
+
Configuration Summary
|
156
|
+
|
157
|
+
Please verify that the configuration is correct.
|
158
|
+
This configuration will be written into the configuration file:
|
159
|
+
<%%= conf_file %>
|
160
|
+
|
161
|
+
Title: <%%= config[:index_html][:title] %>
|
162
|
+
|
163
|
+
Database: <%%= config[:database][:ses_db] %>
|
164
|
+
|
165
|
+
HTTP Server:
|
166
|
+
Address: <%%= config[:http_server][:bind_address] %>
|
167
|
+
Port: <%%= config[:http_server][:port] %>
|
168
|
+
URI Prefix: <%%= config[:base_url] %>
|
169
|
+
|
170
|
+
This means the URL will be <%%= test_url %>
|
171
|
+
|
172
|
+
:confirm_config: "Is the configuration correct, "
|
173
|
+
:creating_dirs: "Creating directories..."
|
174
|
+
:installing_welcome_plugin: |+
|
175
|
+
Installing the welcome plugin. To remove it, just delete this folder:
|
176
|
+
<%%= welcome_plugin_dst %>
|
177
|
+
:creating_files: "Creating files..."
|
178
|
+
:congratulations: |+
|
179
|
+
|
180
|
+
<%= '-='*39 %>-
|
181
|
+
|
182
|
+
RSence project environment for '<%%= config[:index_html][:title] %>' created.
|
183
|
+
|
184
|
+
You may configure the environment by editing the file:
|
185
|
+
|
186
|
+
<%%= conf_file %>
|
187
|
+
|
188
|
+
If you would like to test this environment now, start the RSence server:
|
189
|
+
|
190
|
+
rsence run <%%= env_dir %>
|
191
|
+
|
192
|
+
Then point your browser to:
|
193
|
+
|
194
|
+
<%%= test_url %>
|
195
|
+
|
196
|
+
The latest documentation and further information is available at the
|
197
|
+
RSence website:
|
198
|
+
|
199
|
+
http://rsence.org/
|
200
|
+
|
201
|
+
|
202
|
+
Congratulations!
|
203
|
+
|
204
|
+
:readme: |
|
205
|
+
This directory contains a RSence environment titled '<%%= config[:index_html][:title] %>'.
|
206
|
+
Visit http://rsence.org/ for further information.
|
207
|
+
# Help for the 'rsence' command line tool.
|
208
|
+
:help:
|
209
|
+
:head: |+
|
210
|
+
RSence command-line tool, version <%= @@version %>
|
211
|
+
|
212
|
+
:tail: |+
|
213
|
+
RSence is a self-contained rich internet application client-server framework.
|
214
|
+
For further information, see http://rsence.org/
|
215
|
+
:unknown: >
|
216
|
+
Unknown command:
|
217
|
+
|
218
|
+
:help_help: >
|
219
|
+
Type 'rsence help' for usage.
|
220
|
+
|
221
|
+
:help_main: |+
|
222
|
+
usage: rsence <command> [options] [args]
|
223
|
+
|
224
|
+
Type 'rsence help <command>' for help on a specific command.
|
225
|
+
|
226
|
+
Available commands:
|
227
|
+
<%= help_avail_cmds %>
|
228
|
+
|
229
|
+
:path: |+
|
230
|
+
The [PATH] is the RSence environment to use.
|
231
|
+
The [PATH] defaults to the current working directory.
|
232
|
+
|
233
|
+
:options: |+
|
234
|
+
Available options:
|
235
|
+
|
236
|
+
--conf <file.yaml> Use additional config file. You can give this option
|
237
|
+
several times. The <file.yaml> is the configuration
|
238
|
+
file to load.
|
239
|
+
|
240
|
+
--debug (-d) Debug mode. Shortcut for several options useful for
|
241
|
+
developers. Not the preferred mode for production.
|
242
|
+
|
243
|
+
--verbose (-v) More verbose output. Also enabled by --debug
|
244
|
+
|
245
|
+
--log-fg (-f) Directs the output of the log messages to stdout
|
246
|
+
instead of the log files. Useful for development.
|
247
|
+
|
248
|
+
--trace-js Logs all js/json going through the msg object.
|
249
|
+
|
250
|
+
--trace-delegate Logs all plugin delegate calls.
|
251
|
+
|
252
|
+
--port <number> The port number the http server listens to.
|
253
|
+
|
254
|
+
--addr <ip address> The IP address or netmask the http server listens to.
|
255
|
+
'0.0.0.0' matches all interfaces.
|
256
|
+
'127.0.0.1' matches the local loopback interface.
|
257
|
+
|
258
|
+
--server <handler> The Rack handler to use. Defaults to mongrel
|
259
|
+
|
260
|
+
--reset-sessions (-r) Resets all active sessions.
|
261
|
+
|
262
|
+
--auto-update (-a) Automatically checks for changes in installed plugin
|
263
|
+
and component bundles. Rebuilds changed component
|
264
|
+
bundles and reload changed plugin bundles.
|
265
|
+
Useful for development purposes.
|
266
|
+
Also enabled by --debug
|
267
|
+
|
268
|
+
--latency <number> Sleeps <number> amount of milliseconds on every
|
269
|
+
request. Useful for testing slow connections.
|
270
|
+
|
271
|
+
--say (-S) Uses speech synthesis via the 'say' command to
|
272
|
+
provide audible feedback, when --auto-update is
|
273
|
+
enabled. Says 'Autobuild complete.',
|
274
|
+
'Loaded [plugin name].', 'Unloaded [plugin name].',
|
275
|
+
'Reloaded [plugin name].', 'Reloading plugins.' and
|
276
|
+
'Plugins reloaded.'
|
277
|
+
Only available on Mac OS X and other systems with a
|
278
|
+
'say' command installed.
|
279
|
+
|
280
|
+
:initenv: |+
|
281
|
+
usage: 'rsence initenv [options] [PATH]'
|
282
|
+
|
283
|
+
The 'initenv' command creates a new RSence environment.
|
284
|
+
|
285
|
+
The expected structure of a project environment (where 'project_directory'
|
286
|
+
is the directory of your project) is:
|
287
|
+
|
288
|
+
[d] project_name : The name of your project.
|
289
|
+
[d] conf : The directory of config files.
|
290
|
+
[f] config.yaml : The config file to load by defult.
|
291
|
+
[d] db : Directory containing database files.
|
292
|
+
[d] log : Directory containing log files.
|
293
|
+
[d] plugins : Directory containing installed plugins.
|
294
|
+
[d] run : Directory containing runtime pid files.
|
295
|
+
[f] README : Description of the environment directory.
|
296
|
+
[f] VERSION : RSence version the environment was created with
|
297
|
+
|
298
|
+
The 'config.yaml' file contains patches specific to your project.
|
299
|
+
|
300
|
+
The configuration files are loaded and applied in this order:
|
301
|
+
1: [rsence_install_path]/conf/default_conf.yaml
|
302
|
+
2: [rsence_install_path]/conf/local_conf.yaml
|
303
|
+
3: /etc/rsence/config.yaml
|
304
|
+
4: ~/.rsence/config.yaml
|
305
|
+
5: [project_directory]/conf/config.yaml
|
306
|
+
6: Any files given using --conf parameters, in order of occurrence.
|
307
|
+
|
308
|
+
The plugins directory contains the plugins that are run in the project.
|
309
|
+
|
310
|
+
|
311
|
+
Available options:
|
312
|
+
|
313
|
+
--port <number> The port number the http server listens to.
|
314
|
+
|
315
|
+
--addr <ip address> The IP address or netmask the http server listens to.
|
316
|
+
'0.0.0.0' matches all interfaces.
|
317
|
+
'127.0.0.1' matches the local loopback interface.
|
318
|
+
Defaults to 0.0.0.0
|
319
|
+
|
320
|
+
--server <handler> The Rack handler to use. Defaults to mongrel
|
321
|
+
|
322
|
+
--title <title> The title of the index page.
|
323
|
+
|
324
|
+
--database <conn_str> Use the Sequel connection string to configure the
|
325
|
+
default session database.
|
326
|
+
|
327
|
+
--uri-prefix <path> Configure RSence to use this http "directory" as
|
328
|
+
the prefix. It defaults to the root directory: /
|
329
|
+
|
330
|
+
--blank Doesn't install the Welcome -plugin.
|
331
|
+
|
332
|
+
--non-interactive (-q) Doesn't ask anything, just creates the environment
|
333
|
+
with the options supplied.
|
334
|
+
|
335
|
+
For further configuration, edit the config.yaml file.
|
336
|
+
|
337
|
+
:run: |+
|
338
|
+
usage: 'rsence run [options] [PATH]'
|
339
|
+
|
340
|
+
The 'run' command starts RSence in foreground (no daemon). Exit with CTRL-C.
|
341
|
+
|
342
|
+
:start: |+
|
343
|
+
usage: 'rsence start [options] [PATH]'
|
344
|
+
|
345
|
+
The 'start' command starts RSence in the background (as a daemon).
|
346
|
+
|
347
|
+
Use the 'stop' command to stop RSence.
|
348
|
+
|
349
|
+
Use the 'restart' command to restart RSence in the background.
|
350
|
+
|
351
|
+
Use the 'status' command to see if RSence is running.
|
352
|
+
|
353
|
+
:stop: |+
|
354
|
+
usage: 'rsence stop [options] [PATH]'
|
355
|
+
|
356
|
+
The 'stop' command stops RSence running in the background (as a daemon).
|
357
|
+
|
358
|
+
Use the 'status' command to see if RSence is running.
|
359
|
+
|
360
|
+
:restart: |+
|
361
|
+
usage: 'rsence restart [options] [PATH]'
|
362
|
+
|
363
|
+
The 'restart' command restarts RSence in the background (as a daemon).
|
364
|
+
If RSence wasn't running before the 'restart' command was issued, the
|
365
|
+
effect is the same as 'start'.
|
366
|
+
|
367
|
+
Use the 'stop' command to stop RSence.
|
368
|
+
|
369
|
+
Use the 'status' command to see if RSence is running.
|
370
|
+
|
371
|
+
:status: |+
|
372
|
+
usage: 'rsence status [options] [PATH]'
|
373
|
+
|
374
|
+
The 'status' command checks if RSence is running.
|
375
|
+
If started with the 'start', 'run' or 'restart' command, a PID file is written.
|
376
|
+
Status checks if the PID file exists, if the RSence process responds and if
|
377
|
+
the configured TCP port responds in the configured IP address.
|
378
|
+
|
379
|
+
Available options:
|
380
|
+
|
381
|
+
--conf <file.yaml> Use additional config file. You can give this option
|
382
|
+
several times. The <file.yaml> is the configuration
|
383
|
+
file to load.
|
384
|
+
|
385
|
+
--debug (-d) Debug mode. Shortcut for several options useful for
|
386
|
+
developers. Not the preferred mode for production.
|
387
|
+
|
388
|
+
--verbose (-v) More verbose output. Also enabled by --debug
|
389
|
+
|
390
|
+
--port <number> The port number the http server listens to.
|
391
|
+
|
392
|
+
--addr <ip address> The IP address or netmask the http server listens to.
|
393
|
+
|
394
|
+
:save: |+
|
395
|
+
usage: 'rsence save [options] [PATH]'
|
396
|
+
|
397
|
+
The 'save' command signals the RSence process to tell the plugins to save their
|
398
|
+
data and the session manager to save its session database.
|
399
|
+
|
400
|
+
Available options:
|
401
|
+
|
402
|
+
--conf <file.yaml> Use additional config file. You can give this option
|
403
|
+
several times. The <file.yaml> is the configuration
|
404
|
+
file to load.
|
405
|
+
|
406
|
+
--debug (-d) Debug mode. Shortcut for several options useful for
|
407
|
+
developers. Not the preferred mode for production.
|
408
|
+
|
409
|
+
--verbose (-v) More verbose output. Also enabled by --debug
|
410
|
+
|
411
|
+
:version: |+
|
412
|
+
usage: 'rsence version'
|
413
|
+
|
414
|
+
The 'version' command simply outputs the version number of RSence.
|
415
|
+
|
416
|
+
RSence follows the standard four-numbered sequence-based version identification
|
417
|
+
scheme. The scheme is defined like: major.minor[.maintenance[.package]][.pre]
|
418
|
+
|
419
|
+
The major number designates major changes in functionality, sometimes limiting
|
420
|
+
backwards compatibility with software written for previous versions.
|
421
|
+
|
422
|
+
The minor number designates minor changes in functionality, like minor or
|
423
|
+
moderate changes in functinality that usually don't impact backwards
|
424
|
+
compatibilty of software written for a previous release with the same major
|
425
|
+
version.
|
426
|
+
|
427
|
+
The maintenance number designates bug fixes and other minimal changes to
|
428
|
+
the release. In a maintenance number change, no new features are introduced.
|
429
|
+
|
430
|
+
The package number is a sequence used for the package release. Rubygems
|
431
|
+
requires an unique version for each gem released, so pre-releases usually
|
432
|
+
occupy the first package numbers of any release.
|
433
|
+
|
434
|
+
The '.pre' suffix signifies a pre-release, like "Alpha" or "Beta". To
|
435
|
+
install a prerelease version, gem requires the '--pre' command line argument.
|
436
|
+
Release versions never have the '.pre' suffix. There are usually several
|
437
|
+
package number increments of a new release.
|
438
|
+
|
439
|
+
Version number conventions in written text should include both major and
|
440
|
+
minor version numbers prefixed with 'RSence'. The maintennance number
|
441
|
+
is usally not mentioned unless an issue is fix or such is discussed.
|
442
|
+
|
443
|
+
For instance: "RSence 2.0 has undergone some major refactoring since 1.2.1"
|
444
|
+
|