Module: Vop

Defined in:
lib/vop.rb,
lib/vop/vop.rb,
lib/vop/version.rb,
lib/vop/shell/shell.rb,
lib/vop/util/errors.rb,
lib/vop/util/worker.rb,
lib/vop/objects/chain.rb,
lib/vop/objects/entity.rb,
lib/vop/objects/filter.rb,
lib/vop/objects/plugin.rb,
lib/vop/parts/executor.rb,
lib/vop/objects/command.rb,
lib/vop/objects/request.rb,
lib/vop/util/pluralizer.rb,
lib/vop/objects/entities.rb,
lib/vop/objects/response.rb,
lib/vop/shell/shell_input.rb,
lib/vop/parts/entity_loader.rb,
lib/vop/parts/filter_loader.rb,
lib/vop/parts/plugin_finder.rb,
lib/vop/parts/plugin_loader.rb,
lib/vop/parts/command_loader.rb,
lib/vop/syntax/entity_syntax.rb,
lib/vop/syntax/filter_syntax.rb,
lib/vop/syntax/plugin_syntax.rb,
lib/vop/objects/command_param.rb,
lib/vop/shell/shell_formatter.rb,
lib/vop/syntax/command_syntax.rb,
lib/vop/objects/entity_definition.rb,
lib/vop/objects/thing_with_params.rb,
lib/vop/parts/dependency_resolver.rb,
lib/vop/shell/shell_input_readline.rb,
lib/vop/shell/shell_input_testable.rb

Defined Under Namespace

Modules: CommandSyntax, EntitySyntax, Errors, FilterSyntax, PluginSyntax, Pluralizer Classes: AsyncExecutorWorker, Chain, Command, CommandLoader, CommandParam, DependencyResolver, Entities, Entity, EntityDefinition, EntityLoader, Executor, Filter, FilterLoader, InterruptChain, Plugin, PluginFinder, PluginLoader, Request, Response, Shell, ShellFormatter, ShellInput, ShellInputReadline, TestableShellInput, ThingWithParams, Vop

Constant Summary collapse

VERSION =
"0.3.5"

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.boot(options = {}) ⇒ Object



13
14
15
16
17
18
19
20
21
22
23
# File 'lib/vop.rb', line 13

def self.boot(options = {})
  if ENV["VOP_DEV_MODE"]
    sibling_lib_dir = Pathname.new(File.join(File.dirname(__FILE__), "..", "lib")).realpath
    if File.exists? sibling_lib_dir
      #puts "adding local lib path #{sibling_lib_dir}"
      $: << sibling_lib_dir
    end
  end

  ::Vop.setup(options)
end

.setup(options = {}) ⇒ Object



9
10
11
# File 'lib/vop.rb', line 9

def self.setup(options = {})
  ::Vop::Vop.new(options)
end

Instance Method Details

#vop_setup(options = {}) ⇒ Object



25
26
27
# File 'lib/vop.rb', line 25

def vop_setup(options = {})
  ::Vop.boot(options)
end