Skip to content

Commit

Permalink
Rework controllers.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Jan 27, 2020
1 parent d409548 commit 4f0b222
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions lib/falcon/command/host.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

require_relative '../container/host'
require_relative '../controller/host'
require_relative '../configuration'

require 'samovar'
Expand Down Expand Up @@ -46,7 +46,7 @@ def configuration(verbose = false)
end

def controller
Container::Host.new(self)
Controller::Host.new(self)
end

def call
Expand Down
4 changes: 2 additions & 2 deletions lib/falcon/command/proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

require_relative '../container/proxy'
require_relative '../controller/proxy'
require_relative 'paths'

require 'samovar'
Expand All @@ -37,7 +37,7 @@ class Proxy < Samovar::Command
include Paths

def controller
Container::Proxy.new(self)
Controller::Proxy.new(self)
end

def container_class
Expand Down
4 changes: 2 additions & 2 deletions lib/falcon/command/redirect.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

require_relative '../container/redirect'
require_relative '../controller/redirect'
require_relative 'paths'

require 'samovar'
Expand All @@ -38,7 +38,7 @@ class Redirect < Samovar::Command
include Paths

def controller
Container::Redirect.new(self)
Controller::Redirect.new(self)
end

def container_class
Expand Down
4 changes: 2 additions & 2 deletions lib/falcon/command/serve.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

require_relative '../server'
require_relative '../endpoint'
require_relative '../container/serve'
require_relative '../controller/serve'

require 'async/container'

Expand Down Expand Up @@ -114,7 +114,7 @@ def client
end

def controller
Container::Serve.new(self)
Controller::Serve.new(self)
end

def call
Expand Down
4 changes: 2 additions & 2 deletions lib/falcon/command/virtual.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

require_relative '../container/virtual'
require_relative '../controller/virtual'
require_relative 'paths'

require 'samovar'
Expand All @@ -38,7 +38,7 @@ class Virtual < Samovar::Command
include Paths

def controller
Container::Virtual.new(self)
Controller::Virtual.new(self)
end

def bind_secure
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
require 'async/container/controller'

module Falcon
module Container
module Controller
class Host < Async::Container::Controller
def initialize(command, **options)
@command = command
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
require_relative '../middleware/proxy'

module Falcon
module Container
module Controller
class Proxy < Serve
SERVER_CIPHERS = "EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5".freeze
DEFAULT_SESSION_ID = "falcon"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
require_relative '../middleware/redirect'

module Falcon
module Container
module Controller
class Redirect < Serve
def initialize(command, **options)
super(command, **options)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
require 'async/container/controller'

module Falcon
module Container
module Controller
class Serve < Async::Container::Controller
def initialize(command, **options)
@command = command
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
require 'async/container/controller'

module Falcon
module Container
module Controller
class Virtual < Async::Container::Controller
def initialize(command, **options)
@command = command
Expand Down

0 comments on commit 4f0b222

Please sign in to comment.