Sha256: 9ae5801a124f70421592fd3338c3314b35894dd9a30ccd4b0a5a33b4f7c62525

Contents?: true

Size: 683 Bytes

Versions: 1

Compression:

Stored size: 683 Bytes

Contents

module Wukong
  module Hadoop
    module IntegrationHelper

      def root
        @root ||= Pathname.new(File.expand_path('../../..', __FILE__))
      end

      def lib_dir
        root.join('lib')
      end

      def bin_dir
        root.join('bin')
      end
      
      def examples_dir
        root.join('examples')
      end

      def integration_env
        {
          "PATH"    => [bin_dir.to_s, ENV["PATH"]].compact.join(':'),
          "RUBYLIB" => [lib_dir.to_s, ENV["RUBYLIB"]].compact.join(':')
        }
      end

      def integration_cwd
        root.to_s
      end

      def example_script *args
        examples_dir.join(*args)
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wukong-hadoop-0.0.1 spec/support/integration_helper.rb