lib/puppet/provider/cloudfile_type/s3.rb
def local_artifact_name
    if File.directory?(@resource[:path])
      b, f = bucket_and_file(@resource[:source])
      artifact = File.join(@resource[:path], f)
    else
      artifact = @resource[:path]
    end
  end
# if the provided path is a dir, use the downloaded filename as the output
# filename
if the provided path is a dir, use the downloaded filename as the output
filename
if the provided path is a dir use the downloaded filename as the output filename
def local_artifact_name
    if File.directory?(@resource[:path])
      b, f = bucket_and_file(@resource[:source])
      artifact = File.join(@resource[:path], f)
    else
      artifact = @resource[:path]
    end
  end
def local_artifact_name if File . directory? ( @resource [ :path ] ) b , f = bucket_and_file ( @resource [ :source ] ) artifact = File . join ( @resource [ :path ] , f ) else artifact = @resource [ :path ] end end
if the provided path is a dir, use the downloaded filename as the output
filename
if the provided path is a dir use the downloaded filename as the output filename