Module: Specinfra
- Defined in:
- lib/specinfra.rb,
lib/specinfra/core.rb,
lib/specinfra/runner.rb,
lib/specinfra/command.rb,
lib/specinfra/version.rb,
lib/specinfra/helper/os.rb,
lib/specinfra/processor.rb,
lib/specinfra/helper/lxc.rb,
lib/specinfra/helper/set.rb,
lib/specinfra/properties.rb,
lib/specinfra/backend/cmd.rb,
lib/specinfra/backend/lxc.rb,
lib/specinfra/backend/ssh.rb,
lib/specinfra/backend/base.rb,
lib/specinfra/backend/exec.rb,
lib/specinfra/ec2_metadata.rb,
lib/specinfra/backend/winrm.rb,
lib/specinfra/configuration.rb,
lib/specinfra/helper/docker.rb,
lib/specinfra/backend/docker.rb,
lib/specinfra/backend/telnet.rb,
lib/specinfra/command/module.rb,
lib/specinfra/command_result.rb,
lib/specinfra/host_inventory.rb,
lib/specinfra/helper/detect_os.rb,
lib/specinfra/command/module/ss.rb,
lib/specinfra/helper/properties.rb,
lib/specinfra/backend/dockerfile.rb,
lib/specinfra/command/module/zfs.rb,
lib/specinfra/host_inventory/cpu.rb,
lib/specinfra/host_inventory/ec2.rb,
lib/specinfra/host_inventory/base.rb,
lib/specinfra/host_inventory/fqdn.rb,
lib/specinfra/host_inventory/user.rb,
lib/specinfra/backend/shell_script.rb,
lib/specinfra/helper/configuration.rb,
lib/specinfra/host_inventory/group.rb,
lib/specinfra/helper/host_inventory.rb,
lib/specinfra/host_inventory/domain.rb,
lib/specinfra/host_inventory/kernel.rb,
lib/specinfra/host_inventory/memory.rb,
lib/specinfra/command/module/systemd.rb,
lib/specinfra/host_inventory/hostname.rb,
lib/specinfra/host_inventory/platform.rb,
lib/specinfra/host_inventory/filesystem.rb,
lib/specinfra/backend/powershell/command.rb,
lib/specinfra/command/module/service/god.rb,
lib/specinfra/command/module/service/init.rb,
lib/specinfra/host_inventory/block_device.rb,
lib/specinfra/command/module/service/monit.rb,
lib/specinfra/command/module/service/runit.rb,
lib/specinfra/host_inventory/virtualization.rb,
lib/specinfra/command/module/service/systemd.rb,
lib/specinfra/command/module/service/upstart.rb,
lib/specinfra/host_inventory/platform_version.rb,
lib/specinfra/backend/powershell/script_helper.rb,
lib/specinfra/command/module/service/delegator.rb,
lib/specinfra/command/module/service/supervisor.rb,
lib/specinfra/command/module/service/daemontools.rb
Defined Under Namespace
Modules: Backend, Command, Configuration, Helper
Classes: CommandFactory, CommandResult, Ec2Metadata, HostInventory, Processor, Properties, Runner
Constant Summary
collapse
- VERSION =
"2.66.3"
Class Method Summary
collapse
Class Method Details
.backend ⇒ Object
14
15
16
17
18
19
20
21
22
23
24
25
|
# 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
|