Skip to content

Instantly share code, notes, and snippets.

@glarizza
Created August 27, 2013 21:16
Show Gist options
  • Save glarizza/6359287 to your computer and use it in GitHub Desktop.
Save glarizza/6359287 to your computer and use it in GitHub Desktop.
require 'rspec-puppet'
#require 'puppetlabs_spec_helper/puppetlabs_spec/puppet_internals'
# Works even without ^^^
scope = PuppetlabsSpec::PuppetInternals.scope
Puppet::Parser::Functions.autoloader.load(:extract)
scope.function_extract(['/var/tmp/test.yaml', 'name'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment