命名空間
方法
- D
- M
- N
- O
- S
類別公開方法
new(options = nil) 連結
來源:顯示 | 於 GitHub 上
# File railties/lib/rails/commands/server/server_command.rb, line 18 def initialize(options = nil) @default_options = options || {} super(@default_options) set_environment end
執行個體公開方法
default_options() 連結
來源:顯示 | 於 GitHub 上
# File railties/lib/rails/commands/server/server_command.rb, line 54 def default_options super.merge(@default_options) end
middleware() 連結
來源:顯示 | 於 GitHub 上
# File railties/lib/rails/commands/server/server_command.rb, line 50 def middleware Hash.new([]) end
opt_parser() 連結
來源:顯示 | 於 GitHub 上
# File railties/lib/rails/commands/server/server_command.rb, line 24 def opt_parser Options.new end
served_url() 連結
來源:顯示 | 於 GitHub 上
# File railties/lib/rails/commands/server/server_command.rb, line 58 def served_url "#{options[:SSLEnable] ? 'https' : 'http'}://#{options[:Host]}:#{options[:Port]}" unless use_puma? end
set_environment() 連結
來源:顯示 | 於 GitHub 上
# File railties/lib/rails/commands/server/server_command.rb, line 28 def set_environment ENV["RAILS_ENV"] ||= options[:environment] end
start(after_stop_callback = nil) 連結
來源:顯示 | 於 GitHub 上
# File railties/lib/rails/commands/server/server_command.rb, line 32 def start(after_stop_callback = nil) trap(:INT) { exit } create_tmp_directories setup_dev_caching log_to_stdout if options[:log_stdout] super() ensure after_stop_callback.call if after_stop_callback end