Module: Itamae::Backend

Defined in:
lib/itamae/backend.rb

Defined Under Namespace

Classes: Base, Docker, Jexec, Local, Ssh

Constant Summary collapse

UnknownBackendTypeError =
Class.new(StandardError)
CommandExecutionError =
Class.new(StandardError)
SourceNotExistError =
Class.new(StandardError)

Class Method Summary collapse

Class Method Details

.create(type, opts = {}) ⇒ Object



32
33
34
# File 'lib/itamae/backend.rb', line 32

def create(type, opts = {})
  self.const_get(type.capitalize).new(opts)
end