flant/superhosting

View on GitHub
lib/superhosting/config_executor.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Superhosting
  module ConfigExecutor
    def self.new(**kwargs)
      klass = if kwargs[:container].nil?
                Mux
              elsif kwargs[:site].nil?
                Container
              else
                Site
              end
      klass.new(kwargs)
    end
  end
end