Skip to content

Commit

Permalink
Merge pull request #26 from grubernaut/master
Browse files Browse the repository at this point in the history
Syntax fix with file resource
  • Loading branch information
grubernaut committed Oct 27, 2014
2 parents afd0e57 + 3ed8a5b commit c1553b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/kitchen/provisioner/puppet_apply.rb
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ def run_command
protected

def load_needed_dependencies!
return unless File.exist(puppetfile)
return unless File.exist?(puppetfile)
return unless config[:resolve_with_librarian_puppet]
debug("Puppetfile found at #{puppetfile}, loading Librarian-Puppet")
Puppet::Librarian.load!(logger)
Expand Down Expand Up @@ -556,7 +556,7 @@ def copy_self_as_module
warn('Modulefile found but this is depricated, ignoring it, see https://tickets.puppetlabs.com/browse/PUP-1188')
end

return unless File.exist(metadata_json)
return unless File.exist?(metadata_json)
module_name = nil
begin
module_name = JSON.parse(IO.read(metadata_json))['name'].split('-').last
Expand Down

0 comments on commit c1553b8

Please sign in to comment.