Module: Specinfra

Defined in:
lib/specinfra.rb,
lib/specinfra/runner.rb,
lib/specinfra/version.rb,
lib/specinfra/processor.rb,
lib/specinfra/helper/lxc.rb,
lib/specinfra/properties.rb,
lib/specinfra/backend/cmd.rb,
lib/specinfra/ec2_metadata.rb,
lib/specinfra/configuration.rb,
lib/specinfra/helper/docker.rb,
lib/specinfra/command_result.rb,
lib/specinfra/host_inventory.rb,
lib/specinfra/helper/properties.rb,
lib/specinfra/host_inventory/ec2.rb,
lib/specinfra/host_inventory/fqdn.rb,
lib/specinfra/helper/configuration.rb,
lib/specinfra/helper/host_inventory.rb,
lib/specinfra/host_inventory/domain.rb,
lib/specinfra/host_inventory/memory.rb,
lib/specinfra/host_inventory/hostname.rb,
lib/specinfra/backend/powershell/command.rb,
lib/specinfra/backend/powershell/script_helper.rb

Defined Under Namespace

Modules: Backend, Command, Configuration, Helper Classes: CommandFactory, CommandResult, Ec2Metadata, HostInventory, Processor, Properties, Runner

Constant Summary collapse

VERSION =
"2.11.8"

Class Method Summary collapse

Class Method Details

.backendObject



23
24
25
26
27
28
29
30
# File 'lib/specinfra.rb', line 23

def backend
  type = Specinfra.configuration.backend
  if type.nil?
    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

.commandObject



19
20
21
# File 'lib/specinfra.rb', line 19

def command
  Specinfra::CommandFactory
end

.configurationObject



15
16
17
# File 'lib/specinfra.rb', line 15

def configuration
  Specinfra::Configuration
end