distros
¶
-
class
fabobjects.distros.
BaseServer
(*args, **kwargs)[source]¶ An SSH daemon connection. Basics This class performs useful high level operations over ssh.
-
add_app
(app)[source]¶ Add and app to list of apps installed on server. :param app: App instance :return: None
-
compress
(input_file, output_file=None, file_type='tar')[source]¶ Compress tar or zip files or folder :param input_file: The input file :param output_file: The output file :param file_type: type if its zip or tar :return: None
-
create_symbolic_link
(link_from, link_to)[source]¶ Create a symbolic link :param str link_from: The initial link :param link_to: File/fold linked to :return: None
-
get_package_manager
()[source]¶ This will return the name of package manager on given os, example ubuntu should return apt or apt-get. :return: string
-
getattribute
(func, *args, **kwargs)[source]¶ This method helps you call other instance methods and can accept args and kwargs mostly good for call private variables and methods. :param func: function :param args: :param kwargs: :return: function or None
-
remove_app
(app)[source]¶ Remove an app from list of apps deployed on server. :param app: App instance :return: None
-