summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAdam Jacob <adam@hjksolutions.com>2008-05-01 17:42:36 -0700
committerAdam Jacob <adam@hjksolutions.com>2008-05-01 17:42:36 -0700
commit4320cdb02e32147bf589d23c3b1ce02a2eba7731 (patch)
treecbf423c18aa03c9204fbfd6da83df29439ff2d95 /lib
parent2307eb8a7abbbf87676359c9bdffe14758d7c1ad (diff)
downloadchef-4320cdb02e32147bf589d23c3b1ce02a2eba7731.tar.gz
The symlink provider should set the source_file to an empty string if the links don't exist
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/platform.rb3
-rw-r--r--lib/chef/provider/directory.rb2
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/chef/platform.rb b/lib/chef/platform.rb
index a37bb105c8..2e5899a5af 100644
--- a/lib/chef/platform.rb
+++ b/lib/chef/platform.rb
@@ -33,7 +33,8 @@ class Chef
:solaris => {},
:default => {
:file => Chef::Provider::File,
- :directory => Chef::Provider::Directory
+ :directory => Chef::Provider::Directory,
+ :link => Chef::Provider::Link,
}
}
diff --git a/lib/chef/provider/directory.rb b/lib/chef/provider/directory.rb
index e30ca1894d..da6770e47b 100644
--- a/lib/chef/provider/directory.rb
+++ b/lib/chef/provider/directory.rb
@@ -18,8 +18,6 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
-require 'digest/md5'
-require 'etc'
require File.join(File.dirname(__FILE__), "file")
class Chef