lib/cloud_crowd/action.rb
# The directory prefix to use for both local and S3 storage.
# [action_name]/job_[job_id]/unit_[work_unit_it]
The directory prefix to use for both local and S3 storage.
The directory prefix to use for both local and S3 storage .
def storage_prefix
      path_parts = []
      path_parts << Inflector.underscore(self.class)
      path_parts << "job_#{@job_id}"
      path_parts << "unit_#{@work_unit_id}" if @work_unit_id
      @storage_prefix ||= File.join(path_parts)
    end
def storage_prefix path_parts = [ ] path_parts << Inflector . underscore ( self . class ) path_parts << "job_#{@job_id}" path_parts << "unit_#{@work_unit_id}" if @work_unit_id @storage_prefix ||= File . join ( path_parts ) end
The directory prefix to use for both local and S3 storage.
The directory prefix to use for both local and S3 storage .