Class: Thin::Commands::Server::Stop
- Inherits:
-
Base
- Object
- Thin::Command
- Base
- Thin::Commands::Server::Stop
- Defined in:
- lib/thin/commands/server/stop.rb
Instance Attribute Summary collapse
-
#pid_file ⇒ Object
Returns the value of attribute pid_file.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Attributes inherited from Thin::Command
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Thin::Command
Constructor Details
This class inherits a constructor from Thin::Command
Instance Attribute Details
#pid_file ⇒ Object
Returns the value of attribute pid_file.
3 4 5 |
# File 'lib/thin/commands/server/stop.rb', line 3 def pid_file @pid_file end |
#timeout ⇒ Object
Returns the value of attribute timeout.
3 4 5 |
# File 'lib/thin/commands/server/stop.rb', line 3 def timeout @timeout end |
Class Method Details
.detailed_help ⇒ Object
19 20 21 22 23 24 25 26 27 |
# File 'lib/thin/commands/server/stop.rb', line 19 def self.detailed_help <<-EOF usage: thin stop [PATH] [options] Stops the web server running in the background which PID is in the file PATH/<pid-file> (default to <current directory>/tmp/pids/thin.pid). EOF end |
.help ⇒ Object
15 16 17 |
# File 'lib/thin/commands/server/stop.rb', line 15 def self.help "Stops the web server running in the background." end |
Instance Method Details
#cwd ⇒ Object
5 6 7 |
# File 'lib/thin/commands/server/stop.rb', line 5 def cwd args.first || '.' end |