Type: implement manifest_path
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								1668620b5b
							
						
					
				
			
			
				commit
				
					
						34f2999e14
					
				
			
		
					 1 changed files with 9 additions and 5 deletions
				
			
		| 
						 | 
					@ -70,11 +70,6 @@ class Type(object):
 | 
				
			||||||
        except KeyError as e:
 | 
					        except KeyError as e:
 | 
				
			||||||
            raise cdist.MissingEnvironmentVariableError(e.args[0])
 | 
					            raise cdist.MissingEnvironmentVariableError(e.args[0])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # FIXME: probably wrong place for this
 | 
					 | 
				
			||||||
    @property
 | 
					 | 
				
			||||||
    def remote_explorer_dir(self):
 | 
					 | 
				
			||||||
        return os.path.join(self.remote_path, "explorer")
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    @classmethod
 | 
					    @classmethod
 | 
				
			||||||
    def list_types(cls):
 | 
					    def list_types(cls):
 | 
				
			||||||
        """Return a list of type instances"""
 | 
					        """Return a list of type instances"""
 | 
				
			||||||
| 
						 | 
					@ -112,6 +107,15 @@ class Type(object):
 | 
				
			||||||
            self.name
 | 
					            self.name
 | 
				
			||||||
        ) 
 | 
					        ) 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    # FIXME: probably wrong place for this
 | 
				
			||||||
 | 
					    @property
 | 
				
			||||||
 | 
					    def remote_explorer_dir(self):
 | 
				
			||||||
 | 
					        return os.path.join(self.remote_path, "explorer")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @property
 | 
				
			||||||
 | 
					    def manifest_path(self):
 | 
				
			||||||
 | 
					        return os.path.join(self.path, "manifest")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @property
 | 
					    @property
 | 
				
			||||||
    def is_singleton(self):
 | 
					    def is_singleton(self):
 | 
				
			||||||
        """Check whether a type is a singleton."""
 | 
					        """Check whether a type is a singleton."""
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue