Sha256: 943616fb5c6f9492dcbabc1105278e0e3e79385bf259bcf18df6ce5420c10154

Contents?: true

Size: 869 Bytes

Versions: 16

Compression:

Stored size: 869 Bytes

Contents

from __future__ import (absolute_import, division, print_function)
__metaclass__ = type

import os
import sys

from ansible.errors import AnsibleError


HERE = os.path.dirname(os.path.realpath(__file__))

PROJECT_ROOT = os.path.realpath(
    os.path.join(
        HERE, # //plugins/filter_plugins
        '..', # //plugins
        '..', # //
    )
)

LIB_PYTHON_DIR = os.path.join( PROJECT_ROOT, 'lib', 'python' )

if not (LIB_PYTHON_DIR in sys.path):
    sys.path.insert(0, LIB_PYTHON_DIR)

import qb.interop


class FilterModule( object ):
    '''
    Ruby interop filters.
    '''

    def filters( self ):
        return {
            'qb_send':          qb.interop.send,
            'qb_send_const':    qb.interop.send_const,
        }
    # filters()
# FilterModule


# Testing with doctest
if __name__ == '__main__':
    import doctest
    doctest.testmod()
    

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
qb-0.3.25 plugins/filter_plugins/ruby_interop_plugins.py
qb-0.3.24 plugins/filter_plugins/ruby_interop_plugins.py
qb-0.3.23 plugins/filter_plugins/ruby_interop_plugins.py
qb-0.3.22 plugins/filter_plugins/ruby_interop_plugins.py
qb-0.3.21 plugins/filter_plugins/ruby_interop_plugins.py
qb-0.3.20 plugins/filter_plugins/ruby_interop_plugins.py
qb-0.3.19 plugins/filter_plugins/ruby_interop_plugins.py
qb-0.3.18 plugins/filter_plugins/ruby_interop_plugins.py
qb-0.3.17 plugins/filter_plugins/ruby_interop_plugins.py
qb-0.3.16 plugins/filter_plugins/ruby_interop_plugins.py
qb-0.3.15 plugins/filter_plugins/ruby_interop_plugins.py
qb-0.3.14 plugins/filter_plugins/ruby_interop_plugins.py
qb-0.3.13 plugins/filter_plugins/ruby_interop_plugins.py
qb-0.3.12 plugins/filter_plugins/ruby_interop_plugins.py
qb-0.3.11 plugins/filter_plugins/ruby_interop_plugins.py
qb-0.3.10 plugins/filter_plugins/ruby_interop_plugins.py