Module Expr Str ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Str keyword NameLoad decorator_list decorator_list
N/A N/A 
Roles in this namespace are meant to provide hosts management operations.
 provy.core Role HostsRole N/A Role N/A N/A 
    This role provides hosts file management utilities.

    Example:
    ::

        from provy.core import Role
        from provy.more.linux import HostsRole

        class MySampleRole(Role):
            def provision(self):
                with self.using(HostsRole) as role:
                    role.ensure_host('localhost', '127.0.0.1')
     ensure_host N/A N/A self host_name ip N/A N/A N/A 
        Makes sure that a certain host is configured in the hosts file.

        :param host_name: The hostname.
        :type host_name: :class:`str`
        :param ip: The IP to which the :data:`host_name` will point to.
        :type ip: :class:`str`
         N/A N/A N/A self ensure_line N/A %s        %s N/A ip host_name /etc/hosts sudo True N/A N/A