Sha256: 3e8a4f6f1544d2c01e2afa8be992278937e28267db3025dfc0333560e78f2366

Contents?: true

Size: 665 Bytes

Versions: 21

Compression:

Stored size: 665 Bytes

Contents

module Aruba
  module Api

    # @return full path to files in the aruba tmp folder
    def fullpath(filename)
      path = File.expand_path(File.join(current_dir, filename))
      if path.match(/^\/cygdrive/)
        # match /cygdrive/c/path/to and return c:\\path\\to
        path = `cygpath -w #{path}`.chomp
      elsif path.match(/.\:/)
        # match c:/path/to and return c:\\path\\to
        path = path.gsub(/\//, '\\')
      end
      path
    end

    # @return the contents of "filename" in the aruba tmp folder
    def get_file_contents(filename)
      in_current_dir do
        IO.read(filename)
      end
    end

  end
end

Version data entries

21 entries across 7 versions & 1 rubygems

Version Path
win32-autogui-0.5.3 examples/quicknote/spec/aruba_helper.rb
win32-autogui-0.5.3 spec/aruba_helper.rb
win32-autogui-0.5.3 examples/skeleton/spec/aruba_helper.rb
win32-autogui-0.5.2 spec/aruba_helper.rb
win32-autogui-0.5.2 examples/skeleton/spec/aruba_helper.rb
win32-autogui-0.5.2 examples/quicknote/spec/aruba_helper.rb
win32-autogui-0.5.1 examples/skeleton/spec/aruba_helper.rb
win32-autogui-0.5.1 examples/quicknote/spec/aruba_helper.rb
win32-autogui-0.5.1 spec/aruba_helper.rb
win32-autogui-0.5.0 examples/skeleton/spec/aruba_helper.rb
win32-autogui-0.5.0 examples/quicknote/spec/aruba_helper.rb
win32-autogui-0.5.0 spec/aruba_helper.rb
win32-autogui-0.4.3 spec/aruba_helper.rb
win32-autogui-0.4.3 examples/skeleton/spec/aruba_helper.rb
win32-autogui-0.4.3 examples/quicknote/spec/aruba_helper.rb
win32-autogui-0.4.2 examples/quicknote/spec/aruba_helper.rb
win32-autogui-0.4.2 spec/aruba_helper.rb
win32-autogui-0.4.2 examples/skeleton/spec/aruba_helper.rb
win32-autogui-0.4.1 examples/skeleton/spec/aruba_helper.rb
win32-autogui-0.4.1 spec/aruba_helper.rb