Method: Chef::Provider::File#action_create_if_missing

Defined in:
lib/chef/provider/file.rb

#action_create_if_missingObject



248
249
250
251
252
253
254
# File 'lib/chef/provider/file.rb', line 248

def action_create_if_missing
  if ::File.exists?(@new_resource.path)
    Chef::Log.debug("#{@new_resource} exists at #{@new_resource.path} taking no action.")
  else
    action_create
  end
end