Skip to content

Instantly share code, notes, and snippets.

@pingali
Created April 29, 2009 21:18
Show Gist options
  • Save pingali/104066 to your computer and use it in GitHub Desktop.
Save pingali/104066 to your computer and use it in GitHub Desktop.
load_from_file bug
diff --git a/lib/poolparty/plugins/chef.rb b/lib/poolparty/plugins/chef.rb
index c044320..d0b0b5e 100644
--- a/lib/poolparty/plugins/chef.rb
+++ b/lib/poolparty/plugins/chef.rb
@@ -26,7 +26,7 @@ module PoolParty
def recipe file=nil, o={}, &block
if file
file = ::File.expand_path(file)
- ::FileUtils.mkdir_p "#{basedir}/recipes" unless ::File.directory? basedir
+ ::FileUtils.mkdir_p "#{basedir}/recipes" unless ::File.directory? "#{basedir}/recipes"
unless ::File.file?(file)
tfile = Tempfile.new("main-poolparty-recipe")
@@ -154,4 +154,4 @@ file_cache_path "/etc/chef"
end
end
-end
\ No newline at end of file
+end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment