Sha256: 1873456840456a3ec99b8e5d868a9d127d2e28925cb4ba02c39325744c01c341

Contents?: true

Size: 571 Bytes

Versions: 13

Compression:

Stored size: 571 Bytes

Contents

require "thor"
require "relaton"
require "relaton/xml_document"
require_relative "cli/command"

module Relaton
  module Cli
    def self.start(arguments)
      Relaton::Cli::Command.start(arguments)
    end

    # Relaton
    #
    # Based on current setup, we need to initiate a Db instance to
    # register all of it's supported processor backends. To make it
    # easier we have added it as a class method so we can use this
    # whenever necessary.
    #
    def self.relaton
      @relaton ||= Relaton::Db.new("#{Dir.home}/.relaton/cache", nil)
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
relaton-cli-0.3.6 lib/relaton/cli.rb
relaton-cli-0.3.5 lib/relaton/cli.rb
relaton-cli-0.3.4 lib/relaton/cli.rb
relaton-cli-0.3.3 lib/relaton/cli.rb
relaton-cli-0.3.2 lib/relaton/cli.rb
relaton-cli-0.3.1 lib/relaton/cli.rb
relaton-cli-0.3.0 lib/relaton/cli.rb
relaton-cli-0.2.2 lib/relaton/cli.rb
relaton-cli-0.2.1 lib/relaton/cli.rb
relaton-cli-0.2.0 lib/relaton/cli.rb
relaton-cli-0.1.10 lib/relaton/cli.rb
relaton-cli-0.1.9 lib/relaton/cli.rb
relaton-cli-0.1.8 lib/relaton/cli.rb