Sha256: 0d0747c664eafb2c8f2889da4aec882ade9e3da24d5c483ee55271c3a08e7d56

Contents?: true

Size: 355 Bytes

Versions: 15

Compression:

Stored size: 355 Bytes

Contents

module Bixby
  class << self
    attr_accessor :manager_uri

    def repo_path
      path("repo")
    end

    # Path to BIXBY_HOME
    def root
      ENV["BIXBY_HOME"]
    end
    alias_method :home, :root

    # Helper for creating absolute paths inside BIXBY_HOME
    def path(*args)
      File.expand_path(File.join(root, *args))
    end


  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
bixby-common-0.4.5 lib/bixby-common/bixby.rb
bixby-common-0.4.4 lib/bixby-common/bixby.rb
bixby-common-0.4.3 lib/bixby-common/bixby.rb
bixby-common-0.4.2 lib/bixby-common/bixby.rb
bixby-common-0.4.1 lib/bixby-common/bixby.rb
bixby-common-0.4.0 lib/bixby-common/bixby.rb
bixby-common-0.3.16 lib/bixby-common/bixby.rb
bixby-common-0.3.15 lib/bixby_common/bixby.rb
bixby-common-0.3.14 lib/bixby_common/bixby.rb
bixby-common-0.3.13 lib/bixby_common/bixby.rb
bixby-common-0.3.12 lib/bixby_common/bixby.rb
bixby-common-0.3.11 lib/bixby_common/bixby.rb
bixby-common-0.3.10 lib/bixby_common/bixby.rb
bixby-common-0.3.9 lib/bixby_common/bixby.rb
bixby-common-0.3.8 lib/bixby_common/bixby.rb