class Router

Public Class Methods

new(opts={}) click to toggle source
# File lib/aws_docker_utils/router.rb, line 6
def initialize(opts={})
  @opts = opts
end

Public Instance Methods

route!() click to toggle source
# File lib/aws_docker_utils/router.rb, line 10
def route!
  case
  when @opts.fetch('configure')   then AwsDockerUtils::Controllers::Configurator.new(@opts)
  when @opts.fetch('backup_file') then AwsDockerUtils::Controllers::S3.new(@opts)
  else raise "NOP"
  end
end