Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
pycklets / rabbitmq_user_exists.py
Size: Mime:
# -*- coding: utf-8 -*-

from pyckles import AutoPycklet


class RabbitmqUserExists(AutoPycklet):
    """Create rabbitmq user with full privileges for a specific vhost.

       Args:
         password: The users password.
         user: The name of the user.
         vhost: The vhost name.

    """

    FRECKLET_ID = "rabbitmq-user-exists"

    def __init__(self, password=None, user=None, vhost=None):

        super(RabbitmqUserExists, self).__init__(
            var_names=["password", "user", "vhost"]
        )
        self._password = password
        self._user = user
        self._vhost = vhost

    @property
    def password(self):
        return self._password

    @password.setter
    def password(self, password):
        self._password = password

    @property
    def user(self):
        return self._user

    @user.setter
    def user(self, user):
        self._user = user

    @property
    def vhost(self):
        return self._vhost

    @vhost.setter
    def vhost(self, vhost):
        self._vhost = vhost