Sha256: 30a5e11a3bddcb3e8c699a99bc5c0e3f99f4f36bddd57e6e829095d5ddcf286a

Contents?: true

Size: 307 Bytes

Versions: 24

Compression:

Stored size: 307 Bytes

Contents

module GoodData::Helpers
  def home_directory
    running_on_windows? ? ENV['USERPROFILE'] : ENV['HOME']
  end

  def running_on_windows?
    RUBY_PLATFORM =~ /mswin32|mingw32/
  end

  def running_on_a_mac?
    RUBY_PLATFORM =~ /-darwin\d/
  end

  def error(msg)
    STDERR.puts(msg)
    exit 1
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
gooddata-0.6.0.pre6 lib/gooddata/helpers.rb
gooddata-0.6.0.pre5 lib/gooddata/helpers.rb
gooddata-0.6.0.pre4 lib/gooddata/helpers.rb
gooddata-0.6.0.pre3 lib/gooddata/helpers.rb
gooddata-0.6.0.pre2 lib/gooddata/helpers.rb
gooddata-0.5.16 lib/gooddata/helpers.rb
gooddata-0.5.15 lib/gooddata/helpers.rb
gooddata-0.5.14 lib/gooddata/helpers.rb
gooddata-0.5.13 lib/gooddata/helpers.rb
gooddata-0.5.12 lib/gooddata/helpers.rb
gooddata-0.5.11 lib/gooddata/helpers.rb
gooddata-0.5.10 lib/gooddata/helpers.rb
gooddata-0.5.9 lib/gooddata/helpers.rb
gooddata-0.5.8 lib/gooddata/helpers.rb
gooddata-0.5.7 lib/gooddata/helpers.rb
gooddata-0.5.6 lib/gooddata/helpers.rb
gooddata-0.5.5 lib/gooddata/helpers.rb
gooddata-0.5.4 lib/gooddata/helpers.rb
gooddata-0.5.3 lib/gooddata/helpers.rb
gooddata-0.5.2 lib/gooddata/helpers.rb