gitlab-com-public-key-trusted

Description

Add gitlab.com public host key to 'known_hosts'.

Variables

Name Type Default Description

user

string --

The user to add the key for.

Code

doc:
  short_help: Add gitlab.com public host key to 'known_hosts'.

args:
  user:
    doc:
      short_help: The user to add the key for.
    type: string
    required: false

frecklets:
- frecklet:
    name: gitlab-com-public-key-in-known-hosts.at.yml
    type: ansible-tasklist
  vars:
    __become__: '{{:: user | false_if_empty ::}}'
    __become_user__: '{{:: user ::}}'
frecklecute gitlab-com-public-key-trusted --help

Usage: frecklecute gitlab-com-public-key-trusted [OPTIONS]

  Add gitlab.com public host key to 'known_hosts'.

Options:
  --user USER  The user to add the key for.
  --help       Show this message and exit.
# -*- coding: utf-8 -*-


#
# module path: pycklets.gitlab_com_public_key_trusted.GitlabComPublicKeyTrusted
#


from dataclasses import dataclass
from pyckles import AutoPycklet
from typing import *    # noqa

@dataclass
class GitlabComPublicKeyTrusted(AutoPycklet):
    """Add gitlab.com public host key to 'known_hosts'.

       Args:
         user: The user to add the key for.

    """

    FRECKLET_ID = "gitlab-com-public-key-trusted"

    user: str = None


    def __post_init__(self):
        super(GitlabComPublicKeyTrusted, self).__init__(var_names=["user"])


frecklet_class = GitlabComPublicKeyTrusted
# -*- coding: utf-8 -*-


#
# module path: pycklets.gitlab_com_public_key_trusted.GitlabComPublicKeyTrusted
#


from pyckles import AutoPycklet

class GitlabComPublicKeyTrusted(AutoPycklet):
    """Add gitlab.com public host key to 'known_hosts'.

       Args:
         user: The user to add the key for.

    """

    FRECKLET_ID = "gitlab-com-public-key-trusted"

    def __init__(self, user=None):

        super(GitlabComPublicKeyTrusted, self).__init__(var_names=["user"])
        self._user = user

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

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



frecklet_class = GitlabComPublicKeyTrusted