Class: Falcon::Command::Proxy
- Inherits:
-
Samovar::Command
- Object
- Samovar::Command
- Falcon::Command::Proxy
show all
- Includes:
- Paths
- Defined in:
- lib/falcon/command/proxy.rb
Instance Method Summary
collapse
Methods included from Paths
#configuration, #resolved_paths
Instance Method Details
#call ⇒ Object
53
54
55
56
57
58
59
60
61
62
|
# File 'lib/falcon/command/proxy.rb', line 53
def call
Async.logger.info(self) do |buffer|
buffer.puts "Falcon Proxy v#{VERSION} taking flight!"
buffer.puts "- Binding to: #{@options[:bind]}"
buffer.puts "- To terminate: Ctrl-C or kill #{Process.pid}"
buffer.puts "- To reload: kill -HUP #{Process.pid}"
end
self.controller.run
end
|
#container_class ⇒ Object
45
46
47
|
# File 'lib/falcon/command/proxy.rb', line 45
def container_class
Async::Container.best_container_class
end
|
#container_options ⇒ Object
49
50
51
|
# File 'lib/falcon/command/proxy.rb', line 49
def container_options
{}
end
|
#controller ⇒ Object
41
42
43
|
# File 'lib/falcon/command/proxy.rb', line 41
def controller
Controller::Proxy.new(self)
end
|
#endpoint(**options) ⇒ Object
64
65
66
|
# File 'lib/falcon/command/proxy.rb', line 64
def endpoint(**options)
Async::HTTP::Endpoint.parse(@options[:bind], **options)
end
|