oneops-admin/lib/shared/cookbooks/artifact/providers/deploy.rb
def retrieve_from_local
    execute "copy artifact from #{new_resource.artifact_location} to #{cached_tar_path}" do
      command Chef::Artifact.copy_command_for(new_resource.artifact_location, cached_tar_path)
      user    new_resource.owner
      group   new_resource.group
      only_if { !::File.exists?(cached_tar_path) || !FileUtils.compare_file(new_resource.artifact_location, cached_tar_path) }
    end
  end
# Defines a resource call for a file already on the file system.
# 
# @return [void]
Defines a resource call for a file already on the file system.
Defines a resource call for a file already on the file system .
def retrieve_from_local
    execute "copy artifact from #{new_resource.artifact_location} to #{cached_tar_path}" do
      command Chef::Artifact.copy_command_for(new_resource.artifact_location, cached_tar_path)
      user    new_resource.owner
      group   new_resource.group
      only_if { !::File.exists?(cached_tar_path) || !FileUtils.compare_file(new_resource.artifact_location, cached_tar_path) }
    end
  end
def retrieve_from_local execute "copy artifact from #{new_resource.artifact_location} to #{cached_tar_path}" do command Chef :: Artifact . copy_command_for ( new_resource . artifact_location , cached_tar_path ) user new_resource . owner group new_resource . group only_if { ! :: File . exists? ( cached_tar_path ) || ! FileUtils . compare_file ( new_resource . artifact_location , cached_tar_path ) } end end
Defines a resource call for a file already on the file system.
Defines a resource call for a file already on the file system .
None
void