Commit 9f58e15c authored by Gao, Shang's avatar Gao, Shang
Browse files

updated documentation of methods

parent b2890424
Loading
Loading
Loading
Loading
+14 −1
Original line number Diff line number Diff line
@@ -85,7 +85,20 @@ class crossbowGlobus(crossbowBase):

    def upload_resource(self,package,resource_path,source_endpoint=olcfatlas,
                        description=None):
        '''
        upload a resource at a globus endpoint to an existing package
        resource is copied to CROSSBOW_NFS/package/filename

        parameters:
          - package: string
            name of package to add resource to
          - resource_path: string
            path to resource on endpoint
          - source_endpoint: string (default: olcf - 'ef1a9560-7ca1-11e5-992c-22000b96db58')
            globus endpoint id of source endpoint 
          - description: string (optional)
            description of resource
        '''
        #get file info
        _, format = os.path.splitext(resource_path)
        filename = os.path.basename(resource_path)
+0 −2
Original line number Diff line number Diff line
@@ -105,8 +105,6 @@ class crossbowMount(crossbowBase):
        parameters:
          - package: string
            name of package to add resource to
          - resource: string
            unique name for resource
          - resource_path: string
            path to local resource
          - description: string (optional)