Class: Thin::Commands::Cluster::Stop
- Inherits:
-
Base
show all
- Defined in:
- lib/thin/commands/cluster/stop.rb
Instance Attribute Summary
Attributes inherited from Base
#config, #trace
#args
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
config_attributes
command_name, #initialize
Constructor Details
This class inherits a constructor from Thin::Command
Class Method Details
.detailed_help ⇒ Object
19
20
21
22
23
24
25
26
|
# File 'lib/thin/commands/cluster/stop.rb', line 19
def self.detailed_help
<<-EOF
usage: thin_cluster stop [options]
Stop multiple servers (--servers) starting on port --port
which pids are stored in <pid-file>.<port>.pid
EOF
end
|
.help ⇒ Object
15
16
17
|
# File 'lib/thin/commands/cluster/stop.rb', line 15
def self.help
"Stops all servers in the cluster"
end
|
Instance Method Details
#run ⇒ Object
3
4
5
6
7
8
9
10
11
12
13
|
# File 'lib/thin/commands/cluster/stop.rb', line 3
def run
load_from_config
cluster = Thin::Cluster.new(cwd, address, port, servers)
cluster.log_file = log_file
cluster.pid_file = pid_file
cluster.trace = trace
cluster.stop
end
|