Module: RSpec::Puppet::ApplicationExampleGroup
- Includes:
- ManifestMatchers, Support
- Defined in:
- lib/rspec-puppet/example/application_example_group.rb
Overview
This module provides support for the application type
Instance Attribute Summary
Attributes included from Support
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, #import_str, #load_catalogue, #munge_facts, #node_params_hash, #nodename, #param_str, #param_str_from_hash, #post_cond, #pre_cond, #ref, #rspec_compatibility, #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
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
#catalogue ⇒ Object
7 8 9 |
# File 'lib/rspec-puppet/example/application_example_group.rb', line 7 def catalogue @catalogue ||= load_catalogue(:application) end |
#exported_resources ⇒ Object
11 12 13 |
# File 'lib/rspec-puppet/example/application_example_group.rb', line 11 def exported_resources lambda { load_catalogue(:application, true) } end |
#rspec_puppet_cleanup ⇒ Object
15 16 17 |
# File 'lib/rspec-puppet/example/application_example_group.rb', line 15 def rspec_puppet_cleanup @catalogue = nil end |