Ejemplo n.º 1
0
 def __init__(self, stream):
     Reader.__init__(self, stream)
     Scanner.__init__(self)
     Parser.__init__(self)
     MkdvYamlComposer.__init__(self)
     FullConstructor.__init__(self)
     Resolver.__init__(self)
Ejemplo n.º 2
0
 def __init__(self, stream):
     Reader.__init__(self, stream)
     Scanner.__init__(self)
     Parser.__init__(self)
     Composer.__init__(self)
     NodeConstructor.__init__(self)
     Resolver.__init__(self)
Ejemplo n.º 3
0
 def __init__(self, stream):
     Reader.__init__(self, stream)
     PyonYamlScanner.__init__(self)
     Parser.__init__(self)
     Composer.__init__(self)
     Constructor.__init__(self)
     Resolver.__init__(self)
Ejemplo n.º 4
0
 def __init__(self, stream):
     Reader.__init__(self, stream)
     Scanner.__init__(self)
     Parser.__init__(self)
     Composer.__init__(self)
     NodeConstructor.__init__(self)
     Resolver.__init__(self)
Ejemplo n.º 5
0
 def __init__(self, stream, stream_name):
     Reader.__init__(self, stream)
     Scanner.__init__(self)
     Parser.__init__(self)
     Composer.__init__(self)
     Constructor.__init__(self, stream_name)
     Resolver.__init__(self)
Ejemplo n.º 6
0
 def __init__(self, stream: TextIO) -> None:
     Reader.__init__(self, stream)
     Scanner.__init__(self)
     Parser.__init__(self)
     Composer.__init__(self)
     BaseConstructor.__init__(self)
     BaseResolver.__init__(self)
Ejemplo n.º 7
0
 def __init__(self, stream, file_name=None):
     Reader.__init__(self, stream)
     Scanner.__init__(self)
     Parser.__init__(self)
     Composer.__init__(self)
     AnsibleConstructor.__init__(self, file_name=file_name)
     Resolver.__init__(self)
Ejemplo n.º 8
0
 def __init__(self, stream):
     Reader.__init__(self, stream)
     PyonYamlScanner.__init__(self)
     Parser.__init__(self)
     Composer.__init__(self)
     Constructor.__init__(self)
     Resolver.__init__(self)
Ejemplo n.º 9
0
 def __init__(self, stream, filename=None):
     Reader.__init__(self, stream)
     Scanner.__init__(self)
     Parser.__init__(self)
     Composer.__init__(self)
     HolderConstructor.__init__(self, filename)
     Resolver.__init__(self)
Ejemplo n.º 10
0
 def __init__(self, stream):
     Reader.__init__(self, stream)
     Scanner.__init__(self)
     Parser.__init__(self)
     Composer.__init__(self)
     SafeConstructor.__init__(self)
     BaseResolver.__init__(self)
Ejemplo n.º 11
0
 def __init__(self, stream):
     Reader.__init__(self, stream)
     Scanner.__init__(self)
     Parser.__init__(self)
     Composer.__init__(self)
     ExtendedSafeConstructor.__init__(self)
     Resolver.__init__(self)
Ejemplo n.º 12
0
 def __init__(self, stream, file_name=None):
     Reader.__init__(self, stream)
     Scanner.__init__(self)
     Parser.__init__(self)
     Composer.__init__(self)
     AnsibleConstructor.__init__(self, file_name=file_name)
     Resolver.__init__(self)
 def __init__(self, stream, filename=None):
     Reader.__init__(self, stream)
     Scanner.__init__(self)
     Parser.__init__(self)
     Composer.__init__(self)
     HolderConstructor.__init__(self, filename)
     Resolver.__init__(self)
Ejemplo n.º 14
0
 def __init__(self, stream, runtime_args=None):
     Reader.__init__(self, stream)
     Scanner.__init__(self)
     Parser.__init__(self)
     Composer.__init__(self)
     JinaConstructor.__init__(self)
     JinaResolver.__init__(self)
     self.runtime_args = runtime_args
Ejemplo n.º 15
0
 def __init__(self, stream: TextIO, *, kind: ast.FlowKind) -> None:
     Reader.__init__(self, stream)
     Scanner.__init__(self)
     Parser.__init__(self)
     Composer.__init__(self)
     BaseConstructor.__init__(self)
     BaseResolver.__init__(self)
     self._kind = kind
Ejemplo n.º 16
0
    def __init__(self, stream, name="<Unknown>", parent=None, secret=False):
        self.name = name
        self.parent = parent

        Reader.__init__(self, stream)
        Scanner.__init__(self)
        Parser.__init__(self)
        Composer.__init__(self, secret=secret)
Ejemplo n.º 17
0
 def __init__(self, stream, cfg_folder: str = None):
     self.cfg_folder = cfg_folder
     Reader.__init__(self, stream)
     Scanner.__init__(self)
     Parser.__init__(self)
     Composer.__init__(self)
     Constructor.__init__(self)
     Resolver.__init__(self)
Ejemplo n.º 18
0
 def __init__(self, stream, file_name=None, vault_password=None):
     Reader.__init__(self, stream)
     Scanner.__init__(self)
     Parser.__init__(self)
     Composer.__init__(self)
     AnsibleConstructor.__init__(self,
                                 file_name=file_name,
                                 b_vault_password=vault_password)
     Resolver.__init__(self)
Ejemplo n.º 19
0
 def __init__(self, stream, file_name=None, line=None, column=None, vault_password=None):
     Reader.__init__(self, stream)
     Scanner.__init__(self)
     Parser.__init__(self)
     Composer.__init__(self)
     YAMLConstructor.__init__(self, file_name=file_name,
                              line=line, column=column,
                              vault_password=vault_password)
     Resolver.__init__(self)
Ejemplo n.º 20
0
 def __init__(self, stream):
     self.meta = Meta(stream, 1, 1)
     self._root = os.path.split(stream.name)[0]
     Reader.__init__(self, stream)
     Scanner.__init__(self)
     Parser.__init__(self)
     Composer.__init__(self)
     YipCons.__init__(self)
     Resolver.__init__(self)
Ejemplo n.º 21
0
 def __init__(self, stream, file_name=None, vault_secrets=None):
     Reader.__init__(self, stream)
     Scanner.__init__(self)
     Parser.__init__(self)
     Composer.__init__(self)
     AssibleConstructor.__init__(self,
                                 file_name=file_name,
                                 vault_secrets=vault_secrets)
     Resolver.__init__(self)
Ejemplo n.º 22
0
    def __init__(self, stream, name="<Unknown>", special_term='yay', secret=False):
        self.name = name
        self.special_term = special_term
        self.openers = Openers()

        Reader.__init__(self, stream)
        Scanner.__init__(self)
        Parser.__init__(self)
        Composer.__init__(self, secret=secret)
Ejemplo n.º 23
0
    def __init__(self, stream):
        """
        Return an instance of this customised YAML Loader class.

        """
        Reader.__init__(self, stream)
        Scanner.__init__(self)
        Parser.__init__(self)
        Composer.__init__(self)
        NodeConstructor.__init__(self)
        Resolver.__init__(self)
Ejemplo n.º 24
0
    def __init__(self, stream):
        """
        Return an instance of this customised YAML Loader class.

        """
        Reader.__init__(self, stream)
        Scanner.__init__(self)
        Parser.__init__(self)
        Composer.__init__(self)
        NodeConstructor.__init__(self)
        Resolver.__init__(self)
Ejemplo n.º 25
0
    def __init__(self, filename):
        self.filename = filename
        with open(self.filename, encoding='utf-8') as fp:
            stream = self.preprocess(fp.read())
        Reader.__init__(self, stream)
        self.name = self.filename

        Scanner.__init__(self)
        Parser.__init__(self)
        Composer.__init__(self)
        Constructor.__init__(self)
        Resolver.__init__(self)
Ejemplo n.º 26
0
    def __init__(self, stream):
        Reader.__init__(self, stream)
        Scanner12.__init__(self)
        Parser.__init__(self)
        Composer.__init__(self)

# PKM2014 - uses SafeConstructor instead of Constructor. This should make no
# difference, because "Is it YAML?" only gets as far as the composition stage,
# but - well: it reduces the risk of something bad happening.

#        Constructor.__init__(self)
        SafeConstructor.__init__(self)
        Resolver.__init__(self)
Ejemplo n.º 27
0
    def __init__(self, stream):
        """Initialise Loader."""

        try:
            self._root = os.path.split(stream.name)[0]
        except AttributeError:
            self._root = os.path.curdir

        Reader.__init__(self, stream)
        Scanner.__init__(self)
        Parser.__init__(self)
        RememberComposer.__init__(self)
        SafeConstructor.__init__(self)
        Resolver.__init__(self)
Ejemplo n.º 28
0
    def __init__(self, stream):
        """Initialise Loader."""

        # pylint: disable=non-parent-init-called

        try:
            self._root = os.path.split(stream.name)[0]
        except AttributeError:
            self._root = os.path.curdir

        Reader.__init__(self, stream)
        Scanner.__init__(self)
        Parser.__init__(self)
        RememberComposer.__init__(self)
        SafeConstructor.__init__(self)
        Resolver.__init__(self)
        SourceMappingConstructor.__init__(self)
Ejemplo n.º 29
0
    def __init__(self, stream, cfg_folder: str = None):
        self.cfg_folder = cfg_folder
        Reader.__init__(self, stream)
        Scanner.__init__(self)
        Parser.__init__(self)
        Composer.__init__(self)
        SafeConstructor.__init__(self)
        Resolver.__init__(self)

        self.add_constructor("!format",
                             self.__class__.format_string_constructor)
        self.add_constructor("!file", self.__class__.file_contructor)
        self.add_constructor("!include",
                             self.__class__.include_file_constructor)
        self.add_constructor("!include_merge",
                             self.__class__.include_merge_constructor)
        self.add_constructor(
            "!include_dir_file_mapped",
            self.__class__.include_dir_file_mapped_constructor)
        self.add_constructor("!env_var", self.__class__.env_var_constructor)
        self.add_constructor("!path", self.__class__.path_constructor)
        self.add_constructor("!listdir", self.__class__.listdir_constructor)