Module: Beaker::DSL::Helpers

Includes:
FacterHelpers, Hiera, HostHelpers, PuppetHelpers, TKHelpers, TestHelpers, WebHelpers
Included in:
Beaker::DSL, Host
Defined in:
lib/beaker/dsl/helpers.rb,
lib/beaker/dsl/helpers/tk_helpers.rb,
lib/beaker/dsl/helpers/web_helpers.rb,
lib/beaker/dsl/helpers/host_helpers.rb,
lib/beaker/dsl/helpers/test_helpers.rb,
lib/beaker/dsl/helpers/facter_helpers.rb,
lib/beaker/dsl/helpers/puppet_helpers.rb

Overview

To mix this is into a class you need the following:

  • a method hosts that yields any hosts implementing Host‘s interface to act upon.

  • a method options that provides an options hash, see Options::OptionsHash

  • a method logger that yields a logger implementing Logger‘s interface.

  • the module Roles that provides access to the various hosts implementing Host‘s interface to act upon

  • the module Wrappers the provides convenience methods for Command creation

  • a method metadata that yields a hash

Defined Under Namespace

Modules: FacterHelpers, HostHelpers, PuppetHelpers, TKHelpers, TestHelpers, WebHelpers

Method Summary

Methods included from WebHelpers

#link_exists?, #port_open_within?

Methods included from TKHelpers

#modify_tk_config

Methods included from TestHelpers

#current_step_name, #current_test_filename, #current_test_name, #set_current_step_name, #set_current_test_filename, #set_current_test_name

Methods included from PuppetHelpers

#apply_manifest, #apply_manifest_on, #create_tmpdir_for_user, #puppet_group, #puppet_user, #run_agent_on, #sign_certificate, #sign_certificate_for, #sleep_until_nc_started, #sleep_until_puppetdb_started, #sleep_until_puppetserver_started, #stop_agent, #stop_agent_on, #stub_forge, #stub_forge_on, #stub_hosts, #stub_hosts_on, #wait_for_host_in_dashboard, #with_forge_stubbed, #with_forge_stubbed_on, #with_host_stubbed_on, #with_puppet_running, #with_puppet_running_on

Methods included from HostHelpers

#add_system32_hosts_entry, #backup_the_file, #check_for_package, #create_remote_file, #create_tmpdir_on, #curl_on, #curl_with_retries, #deploy_package_repo, #echo_on, #execute_powershell_script_on, #exit_code, #install_package, #on, #retry_on, #rsync_to, #run_script, #run_script_on, #scp_from, #scp_to, #shell, #stderr, #stdout, #upgrade_package

Methods included from FacterHelpers

#fact, #fact_on