nomad-client-config-file

Description

Nomad server configuration.

Variables

Name Type Default Description

path

string --

The path to the file. Required

group

string --

The group of the file.

mode

string --

The permissions of the file.

owner

string --

The owner of the file.

Code

doc:
  short_help: Nomad server configuration.
args:
  _import:
  - file-with-content
frecklets:
- file-with-content:
    path: '{{:: path ::}}'
    group: '{{:: group ::}}'
    owner: '{{:: owner ::}}'
    mode: '{{:: mode ::}}'
    content: |-
      client {
        enabled = true
      }
frecklecute nomad-client-config-file --help

Usage: frecklecute nomad-client-config-file [OPTIONS] PATH

  Nomad server configuration.

Options:
  --group GROUP  The group of the file.
  --mode MODE    The permissions of the file.
  --owner USER   The owner of the file.
  --help         Show this message and exit.
# -*- coding: utf-8 -*-


#
# module path: pycklets.nomad_client_config_file.NomadClientConfigFile
#


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

@dataclass
class NomadClientConfigFile(AutoPycklet):
    """Nomad server configuration.

       Args:
         group: The group of the file.
         mode: The permissions of the file.
         owner: The owner of the file.
         path: The path to the file.

    """

    FRECKLET_ID = "nomad-client-config-file"

    group: str = None
    mode: str = None
    owner: str = None
    path: str = None


    def __post_init__(self):
        super(NomadClientConfigFile, self).__init__(var_names=["group", "mode", "owner", "path"])


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


#
# module path: pycklets.nomad_client_config_file.NomadClientConfigFile
#


from pyckles import AutoPycklet

class NomadClientConfigFile(AutoPycklet):
    """Nomad server configuration.

       Args:
         group: The group of the file.
         mode: The permissions of the file.
         owner: The owner of the file.
         path: The path to the file.

    """

    FRECKLET_ID = "nomad-client-config-file"

    def __init__(self, group=None, mode=None, owner=None, path=None):

        super(NomadClientConfigFile, self).__init__(var_names=["group", "mode", "owner", "path"])
        self._group = group
        self._mode = mode
        self._owner = owner
        self._path = path

    @property
    def group(self):
        return self._group

    @group.setter
    def group(self, group):
        self._group = group

    @property
    def mode(self):
        return self._mode

    @mode.setter
    def mode(self, mode):
        self._mode = mode

    @property
    def owner(self):
        return self._owner

    @owner.setter
    def owner(self, owner):
        self._owner = owner

    @property
    def path(self):
        return self._path

    @path.setter
    def path(self, path):
        self._path = path



frecklet_class = NomadClientConfigFile