# File lib/chef/resource/link.rb, line 34 def initialize(name, run_context=nil) verify_links_supported! super @resource_name = :link @to = nil @action = :create @link_type = :symbolic @target_file = name @allowed_actions.push(:create, :delete) @provider = Chef::Provider::Link end
# File lib/chef/resource/link.rb, line 71 def group(arg=nil) set_or_return( :group, arg, :regex => Chef::Config[:group_valid_regex] ) end
# File lib/chef/resource/link.rb, line 62 def link_type(arg=nil) real_arg = arg.kind_of?(String) ? arg.to_sym : arg set_or_return( :link_type, real_arg, :equal_to => [ :symbolic, :hard ] ) end
# File lib/chef/resource/link.rb, line 79 def owner(arg=nil) set_or_return( :owner, arg, :regex => Chef::Config[:user_valid_regex] ) end
make link quack like a file (XXX: not for public consumption)
# File lib/chef/resource/link.rb, line 88 def path @target_file end
Generated with the Darkfish Rdoc Generator 2.