diff options
author | danielsdeleo <dan@opscode.com> | 2013-05-22 14:43:07 -0700 |
---|---|---|
committer | danielsdeleo <dan@opscode.com> | 2013-05-23 12:59:13 -0700 |
commit | 156bfef97b79155b05af67d49988e8f6f93ee9b6 (patch) | |
tree | 5893e98d581ad9c568886480b6e91abce4983468 /lib/chef/resource/remote_file.rb | |
parent | 3077b85a7942b1318c9fd37adcba5cf4c1cf7abb (diff) | |
download | chef-156bfef97b79155b05af67d49988e8f6f93ee9b6.tar.gz |
move cache control data management out of provider
completely remove cache control data management from remote file
provider, it's now managed at the per-protocol implementation layer.
Diffstat (limited to 'lib/chef/resource/remote_file.rb')
-rw-r--r-- | lib/chef/resource/remote_file.rb | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/lib/chef/resource/remote_file.rb b/lib/chef/resource/remote_file.rb index dd774bcb31..e4a897e523 100644 --- a/lib/chef/resource/remote_file.rb +++ b/lib/chef/resource/remote_file.rb @@ -61,25 +61,10 @@ class Chef ) end - # Enables the use of both ETag and last modified time-based cache - # control. For servers that are behaving correctly, this is the - # recommended way to enable conditional GET. def use_conditional_get(args=nil) set_or_return(:use_conditional_get, args, :kind_of => [ TrueClass, FalseClass ]) end - def etag(args=nil) - # Only store the etag itself, skip the quotes (and leading W/ if it's there) - if args.is_a?(String) && args.include?('"') - args = args.split('"')[1] - end - set_or_return( - :etag, - args, - :kind_of => String - ) - end - def use_etag(args=nil) set_or_return( :use_etags, @@ -90,19 +75,6 @@ class Chef alias :use_etags :use_etag - def last_modified(args=nil) - if args.is_a?(String) - args = Time.parse(args).gmtime - elsif args.is_a?(Time) - args.gmtime - end - set_or_return( - :last_modified, - args, - :kind_of => Time - ) - end - def use_last_modified(args=nil) set_or_return( :use_last_modified, |