Module: RSpec::Puppet::HostExampleGroup

Includes:
ManifestMatchers, Support
Defined in:
lib/rspec-puppet/example/host_example_group.rb

Instance Attribute Summary

Attributes included from Support

#adapter

Instance Method Summary collapse

Methods included from Support

#build_catalog, #build_catalog_without_cache, #build_catalog_without_cache_v2, #build_code, #class_name, #environment, #escape_special_chars, #facts_hash, #find_pretend_platform, #fixture_spec_hiera_conf, #guess_type_from_path, #load_catalogue, #munge_facts, #node_params_hash, #nodename, #param_str, #param_str_from_hash, #post_cond, #pre_cond, #ref, #sanitise_resource_title, #sensitive, #server_facts_hash, #setup_puppet, #site_pp_str, #str_from_value, #stub_facts!, #stub_file_consts, #subject, #test_manifest, #trusted_external_data_hash, #trusted_facts_hash, #with_vardir

Methods included from GenericMatchers

#raise_error

Methods included from ManifestMatchers

#have_class_count, #have_resource_count, #method_missing

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class RSpec::Puppet::ManifestMatchers

Instance Method Details

#catalogueObject



8
9
10
# File 'lib/rspec-puppet/example/host_example_group.rb', line 8

def catalogue
  @catalogue ||= load_catalogue(:host)
end

#exported_resourcesObject



12
13
14
# File 'lib/rspec-puppet/example/host_example_group.rb', line 12

def exported_resources
  -> { load_catalogue(:host, true) }
end

#rspec_puppet_cleanupObject



16
17
18
# File 'lib/rspec-puppet/example/host_example_group.rb', line 16

def rspec_puppet_cleanup
  @catalogue = nil
end