mongrel-manager 0.0.1 → 0.0.2
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/README +16 -0
- data/bin/mongrel-manager +14 -1
- metadata +2 -2
data/README
CHANGED
@@ -1 +1,17 @@
|
|
1
1
|
Script for managing multiple local mongrel instances for local development of many projects.
|
2
|
+
|
3
|
+
# Usage
|
4
|
+
|
5
|
+
mongrel-manager command [options or instances names]
|
6
|
+
|
7
|
+
Commands:
|
8
|
+
list - Show all managed instances
|
9
|
+
start - Start the named instaces (blank for all)
|
10
|
+
stop - Stop the named instances (blank for all)
|
11
|
+
restart - Restart the named instances (blank for all)
|
12
|
+
delete - Delete the named instances
|
13
|
+
add - Add a new instance
|
14
|
+
--name Name of the instance
|
15
|
+
--port Port of the instance
|
16
|
+
--root Root of the instance (defaults to PWD)
|
17
|
+
|
data/bin/mongrel-manager
CHANGED
@@ -134,7 +134,20 @@ when 'list', nil, ''
|
|
134
134
|
puts ''
|
135
135
|
puts Hirb::Helpers::Table.render @config.instances.collect(&:to_hash)
|
136
136
|
else
|
137
|
-
|
137
|
+
puts "Usage: "
|
138
|
+
puts ""
|
139
|
+
puts "#{$0} command [options or instances names]"
|
140
|
+
puts ""
|
141
|
+
puts "Commands:"
|
142
|
+
puts " list - Show all managed instances"
|
143
|
+
puts " start - Start the named instaces (blank for all)"
|
144
|
+
puts " stop - Stop the named instances (blank for all)"
|
145
|
+
puts " restart - Restart the named instances (blank for all)"
|
146
|
+
puts " delete - Delete the named instances"
|
147
|
+
puts " add - Add a new instance"
|
148
|
+
puts " --name Name of the instance"
|
149
|
+
puts " --port Port of the instance"
|
150
|
+
puts " --root Root of the instance (defaults to PWD)"
|
138
151
|
end
|
139
152
|
|
140
153
|
File.open( config_filepath, 'w' ) {|f| YAML.dump(@config, f) }
|