lib/falcon/command/virtual.rb in falcon-0.36.0 vs lib/falcon/command/virtual.rb in falcon-0.36.1

- old
+ new

@@ -31,10 +31,12 @@ self.description = "Run one or more virtual hosts with a front-end proxy." options do option '--bind-insecure <address>', "Bind redirection to the given hostname/address", default: "http://[::]:80" option '--bind-secure <address>', "Bind proxy to the given hostname/address", default: "https://[::]:443" + + option '-t/--timeout <duration>', "Specify the maximum time to wait for non-blocking operations.", type: Float, default: 30 end many :paths include Paths @@ -47,9 +49,13 @@ @options[:bind_secure] end def bind_insecure @options[:bind_insecure] + end + + def timeout + @options[:timeout] end def call Async.logger.info(self) do |buffer| buffer.puts "Falcon Virtual v#{VERSION} taking flight!"