Sha256: bedb1ac2bc87bc80aa49a98c4f028e3730a7360fa56b71dbffbd6b94536dcc1c

Contents?: true

Size: 1.78 KB

Versions: 1

Compression:

Stored size: 1.78 KB

Contents

module Sbuilder

  class Constants

    # supported domain types
    TYPE_DOMAIN = "domain"
    TYPE_VALUE_DOMAIN = "value-domain"
    TYPE_CARDINALITY_DOMAIN = "cardinality-domain"    

    # supported extension loader types
    EXTENSION_LOADER_YAML = "default-yaml"
    
    # supported paramter set types
    SWAGGER = "swagger"
    SWAGGER_DEFINITION="definition"
    PARAM_SET_STEPS = "steps"

    # supported mapper types
    MAPPER_YAML = "resolver_yaml"

    # supported mapper_rules
    MAPPER_RULE_MATCH = "match"
    MAPPER_RULE_REF   = "ref"

    # supported paremters
    PARAMETER                = "param"
    PARAMETER_REF            = "param-ref"

    # direcotory where to manual source files are
    SRC_DIR = "src"
    
    # Default template generation 
    # Notice directory names end with slash indicating that they are directories (and not gem-names)

    TEMPLATE_GEM='tla-sbuilder'
    TEMPLATE_PATH='mustache/'
    
    SRC_PATH="#{SRC_DIR}/"         # i.e. src_dir with ending '/', see option --templates

    # default log-file
    LOGFILE="sbuilder.log"

    # configurations 
    CNF_DIR = "cnf"

    # main configuration file
    CNF_FILE="sbuilder.yaml"

    # directory to cache loaded files
    CACHE_DIR = "tmp"

    # direcotory where to output rendered templates
    GEN_DIR = "gen"

    # direcotory where to output build results
    BUILD_DIR = "build"

    # namespace
    TYPE_NAMESPACE_DOM = "d_"
    TYPE_NAMESPACE_REF = "t_"    

    # Location of resources
    RESOURCES_DIR = File.expand_path '../../../resources/', __FILE__
    SWAGGER_SCHEMA = File.expand_path 'schema/swagger/2.0/schema.json', RESOURCES_DIR
    JSON_SCHEMA = File.expand_path 'schema/json_schema/draft-04.json', RESOURCES_DIR

    # Default options
    OPT_VERBOSITY = 1     # output leve

  end

end  

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tla-sbuilder-0.1.0 lib/sbuilder/constants.rb