1111class Instance (ImageBase ):
1212 def __init__ (self , image , start = True , name = None , ** kwargs ):
1313 """An instance is an image running as an instance with services.
14- This class has functions appended under cmd/__init__ and is
15- instantiated when the user calls Client.
16-
17- Parameters
18- ==========
19- image: the Singularity image uri to parse (required)
20- start: boolean to start the instance (default is True)
21- name: a name for the instance (will generate RobotName
22- if not provided)
14+ This class has functions appended under cmd/__init__ and is
15+ instantiated when the user calls Client.
16+
17+ Parameters
18+ ==========
19+ image: the Singularity image uri to parse (required)
20+ start: boolean to start the instance (default is True)
21+ name: a name for the instance (will generate RobotName
22+ if not provided)
2323 """
2424 super (Instance , self ).__init__ ()
2525 self .parse_image_name (image )
@@ -38,7 +38,7 @@ def __init__(self, image, start=True, name=None, **kwargs):
3838
3939 def generate_name (self , name = None ):
4040 """generate a Robot Name for the instance to use, if the user doesn't
41- supply one.
41+ supply one.
4242 """
4343 # If no name provided, use robot name
4444 if name is None :
@@ -47,27 +47,26 @@ def generate_name(self, name=None):
4747
4848 def parse_image_name (self , image ):
4949 """
50- simply split the uri from the image. Singularity handles
51- parsing of registry, namespace, image.
52-
53- Parameters
54- ==========
55- image: the complete image uri to load (e.g., docker://ubuntu)
50+ simply split the uri from the image. Singularity handles
51+ parsing of registry, namespace, image.
52+
53+ Parameters
54+ ==========
55+ image: the complete image uri to load (e.g., docker://ubuntu)
5656
5757 """
5858 self ._image = image
5959 self .protocol = "instance"
6060
6161 def get_uri (self ):
62- """return the image uri (instance://) along with it's name
63- """
62+ """return the image uri (instance://) along with it's name"""
6463 return self .__str__ ()
6564
6665 # Metadata
6766
6867 def _update_metadata (self , kwargs = None ):
6968 """Extract any additional attributes to hold with the instance
70- from kwargs
69+ from kwargs
7170 """
7271
7372 # If not given metadata, use instance.list to get it for container
0 commit comments