Sha256: caaa10e2b237ced0195a1da4c7eadf7e148c408ad25656929b2fe504b6a6d809

Contents?: true

Size: 545 Bytes

Versions: 17

Compression:

Stored size: 545 Bytes

Contents

require_relative "client/daemon"

module Rsense
  module Client
    class Client
      attr_accessor :config

      Config = Struct.new(
        :gem_home,
        :gem_path,
        :load_path
      )

      def gather_info
        @config = Config.new(gem_home, gem_path, $:.join(File::PATH_SEPARATOR))
      end

      def gem_home
        ENV["GEM_HOME"]
      end

      def gem_path
        gem_pth = []
        gem_pth << ENV["GEM_PATH"]
        gem_pth << Gem.path
        gem_pth.join(File::PATH_SEPARATOR)
      end

    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
rsense-0.5.18 lib/rsense/client.rb
rsense-0.5.16 lib/rsense/client.rb
rsense-0.5.15 lib/rsense/client.rb
rsense-0.5.14 lib/rsense/client.rb
rsense-0.5.13 lib/rsense/client.rb
rsense-0.5.12 lib/rsense/client.rb
rsense-0.5.11 lib/rsense/client.rb
rsense-0.5.10 lib/rsense/client.rb
rsense-0.5.9 lib/rsense/client.rb
rsense-0.5.8 lib/rsense/client.rb
rsense-0.5.7 lib/rsense/client.rb
rsense-0.5.6 lib/rsense/client.rb
rsense-0.5.5 lib/rsense/client.rb
rsense-0.5.4 lib/rsense/client.rb
rsense-0.5.3 lib/rsense/client.rb
rsense-0.5.1 lib/rsense/client.rb
rsense-0.5.0 lib/rsense/client.rb