Sha256: a98a533b0527a870b3e7636e5f55cc9ae87b14dd16aba64a05ac7422e883aacf

Contents?: true

Size: 439 Bytes

Versions: 15

Compression:

Stored size: 439 Bytes

Contents

require 'puppet/pops'

require File.join(File.dirname(__FILE__), '/../factory_rspec_helper')

module ParserRspecHelper
  include FactoryRspecHelper

  def with_app_management(flag)
    Puppet[:app_management] = flag
  end

  def parse(code)
    parser = Puppet::Pops::Parser::Parser.new()
    parser.parse_string(code)
  end

  def parse_epp(code)
    parser = Puppet::Pops::Parser::EppParser.new()
    parser.parse_string(code)
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
puppet-4.4.2 spec/unit/pops/parser/parser_rspec_helper.rb
puppet-4.4.2-x86-mingw32 spec/unit/pops/parser/parser_rspec_helper.rb
puppet-4.4.2-x64-mingw32 spec/unit/pops/parser/parser_rspec_helper.rb
puppet-4.4.2-universal-darwin spec/unit/pops/parser/parser_rspec_helper.rb
puppet-4.4.1 spec/unit/pops/parser/parser_rspec_helper.rb
puppet-4.4.1-x86-mingw32 spec/unit/pops/parser/parser_rspec_helper.rb
puppet-4.4.1-x64-mingw32 spec/unit/pops/parser/parser_rspec_helper.rb
puppet-4.4.1-universal-darwin spec/unit/pops/parser/parser_rspec_helper.rb
puppet-4.4.0 spec/unit/pops/parser/parser_rspec_helper.rb
puppet-4.4.0-x86-mingw32 spec/unit/pops/parser/parser_rspec_helper.rb
puppet-4.4.0-x64-mingw32 spec/unit/pops/parser/parser_rspec_helper.rb
puppet-4.4.0-universal-darwin spec/unit/pops/parser/parser_rspec_helper.rb
puppet-4.3.2 spec/unit/pops/parser/parser_rspec_helper.rb
puppet-4.3.2-x86-mingw32 spec/unit/pops/parser/parser_rspec_helper.rb
puppet-4.3.2-x64-mingw32 spec/unit/pops/parser/parser_rspec_helper.rb