Module: RSpecSystemForeman::Helpers

Includes:
RSpecSystem::Helpers, RSpecSystemPuppet::Helpers
Defined in:
lib/rspec-system-foreman/helpers.rb

Overview

This module contains the methods provide by rspec-system-foreman

Instance Method Summary collapse

Instance Method Details

#foreman_install(opts = {}) {|result| ... } ⇒ RSpecSystemForeman::Helpers::ForemanInstall

Basic helper to install Foreman with the installer

Parameters:

  • opts (Hash) (defaults to: {})

    a hash of opts

Options Hash (opts):

  • :node (RSpecSystem::Node)

    node to execute DSL on

  • :answers (Hash)

    answers file hash, merged with defaults

Yields:

  • (result)

    yields result when called as a block

Yield Parameters:

Returns:

  • (RSpecSystemForeman::Helpers::ForemanInstall)

    results



34
35
36
# File 'lib/rspec-system-foreman/helpers.rb', line 34

def foreman_install(opts = {}, &block)
  RSpecSystemForeman::Helpers::ForemanInstall.new(opts, self, &block)
end

#foreman_installer_install(opts = {}) {|result| ... } ⇒ RSpecSystemForeman::Helpers::ForemanInstallerInstall

Installs the foreman-installer and optionally a repo

Parameters:

  • opts (Hash) (defaults to: {})

    a hash of opts

Options Hash (opts):

  • :node (RSpecSystem::Node)

    node to execute DSL on

  • :installer_source (String)

    optional checkout of foreman-installer to use

  • :release_url (String)

    override URL of foreman-release RPM

  • :custom_repo (String)

    override URL of repo to install

  • :repo (String)

    sub-repo to use, default: latest stable release

Yields:

  • (result)

    yields result when called as a block

Yield Parameters:

Returns:

  • (RSpecSystemForeman::Helpers::ForemanInstallerInstall)

    results



22
23
24
# File 'lib/rspec-system-foreman/helpers.rb', line 22

def foreman_installer_install(opts = {}, &block)
  RSpecSystemForeman::Helpers::ForemanInstallerInstall.new(opts, self, &block)
end