module Specinfra

Constants

VERSION

Public Class Methods

backend() click to toggle source
# File lib/specinfra.rb, line 14
def backend
  type = Specinfra.configuration.backend
  if type.nil?
    if Specinfra.configuration.error_on_missing_backend_type
      raise "No backend type is specified."
    end

    warn "No backend type is specified. Fall back to :exec type."
    type = :exec
  end
  eval "Specinfra::Backend::#{type.to_s.to_camel_case}.instance"
end
command() click to toggle source
# File lib/specinfra.rb, line 10
def command
  Specinfra::CommandFactory.instance
end
configuration() click to toggle source
# File lib/specinfra/core.rb, line 14
def configuration
  Specinfra::Configuration
end