class KPM::BaseArtifact
def pull_from_fs_and_put_in_place(logger, file_path, destination_path=nil)
def pull_from_fs_and_put_in_place(logger, file_path, destination_path=nil) artifact_info = { :skipped => false, :repository_path => file_path, :is_tgz => file_path.end_with?('.tar.gz') || file_path.end_with?('.tgz') } populate_fs_info(artifact_info, destination_path) # Create the destination directory FileUtils.mkdir_p(artifact_info[:dir_name]) if artifact_info[:is_tgz] artifact_info[:bundle_dir] = Utils.unpack_tgz(file_path, artifact_info[:dir_name], true) else FileUtils.cp file_path, artifact_info[:dir_name] artifact_info[:bundle_dir] = artifact_info[:dir_name] end logger.info "Successful installation of #{file_path} to #{artifact_info[:bundle_dir]}" artifact_info end