Module: Charyf::Generators::Defaults

Extended by:
Defaults
Included in:
Defaults
Defined in:
lib/charyf/utils/generators/defaults.rb

Constant Summary collapse

SETTINGS =
{
    storage: 'memory',
    intents: ['adapt']
}
STORAGE_PROVIDERS =
{
    memory: {
        gem: 'charyf-memory-storage',
        gem_version: ['>= 0.1'],
        require: 'charyf/memory_storage',
        desc: "Memory storage does not provide permanent storage as the contract may require\nbut delivers enough capabilities for development and testing.\nShould not be used on production environments as it is not persisted.\n        EOM\n    }\n}\n"
INTENT_PROCESSORS =
{
    adapt: {
        gem: 'adapt-charyf',
        gem_version: ['>= 0.2'],
        require: 'adapt-charyf',
        desc: "Ruby wrapper around python library from mycroft [adapt]\nIt uses building blocks as regexps or small expressions to define and determine intents.\nsee more at: https://github.com/Charyf/charyf-adapt-processor\n        EOM\n    }\n}\n"

Instance Method Summary collapse

Instance Method Details

#intents_descObject



37
38
39
40
41
42
43
44
45
# File 'lib/charyf/utils/generators/defaults.rb', line 37

def intents_desc
  desc = "\n"
  desc << "Here is a list of currently available and supported intent processors, \nthat can be enabled during installation"
  desc << "\nIf your processor isn't listed here, you can change it later in your project settings"

  desc << desc(INTENT_PROCESSORS)

  "\t" + desc.gsub("\n", "\n\t")
end

#storage_descObject



47
48
49
50
51
52
53
54
55
56
57
# File 'lib/charyf/utils/generators/defaults.rb', line 47

def storage_desc
  desc = "\n"
  desc << "Here is a list of currently available and supported storage providers, \nthat can be enabled during installation"
  desc << "\nIf your provider  isn't listed here, you can change it later in your project settings"

  desc << desc(STORAGE_PROVIDERS)

  desc

  "\t" + desc.gsub("\n", "\n\t")
end