cloudmesh-common.cloudmesh.common.location

class that specifies where we read the cloudmesh.yaml file from

Module Contents

Classes

Location

class cloudmesh-common.cloudmesh.common.location.Location(directory='~/.cloudmesh')
_shared_state
write(self, filename, content)

Write a file to the configuration directory

Parameters
  • filename – The filename

  • content – The content

Returns

read(self, filename)

Read a file from the configuration directory

Parameters

filename – The filename

Returns

The content

file(self, filename)

The location of the config file in the cloudmesh configuration directory

Parameters

filename – the filenam

get(self)
set(self, directory)
config(self)
environment(self, key)
__str__(self)

Return str(self).

__eq__(self, other)

Return self==value.