puppetfile-cli.rb in puppetfile-resolver-0.6.2 vs puppetfile-cli.rb in puppetfile-resolver-0.6.3

- old
+ new

@@ -70,12 +70,12 @@ require 'puppetfile-resolver/cache/persistent' cache = PuppetfileResolver::Cache::Persistent.new(options[:cache_dir]) end # Parse the Puppetfile into an object model -content = File.open(options[:path], 'rb') { |f| f.read } +content = File.binread(options[:path]) require 'puppetfile-resolver/puppetfile/parser/r10k_eval' -puppetfile = ::PuppetfileResolver::Puppetfile::Parser::R10KEval.parse(content) +puppetfile = PuppetfileResolver::Puppetfile::Parser::R10KEval.parse(content) # Make sure the Puppetfile is valid unless puppetfile.valid? puts 'Puppetfile is not valid' puppetfile.validation_errors.each { |err| puts err }