Sha256: 79e44b0185164e80731857fcebd4428d91d3bbda707f341a51799f52e4824e45

Contents?: true

Size: 215 Bytes

Versions: 5

Compression:

Stored size: 215 Bytes

Contents

module Morale
  module Platform
    def home_directory
      running_on_windows? ? ENV['USERPROFILE'] : ENV['HOME']
    end
    
    def running_on_windows?
      RUBY_PLATFORM =~ /mswin32|mingw32/
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
morale-client-1.0.3 lib/morale/platform.rb
morale-client-1.0.2 lib/morale/platform.rb
morale-client-1.0.1 lib/morale/platform.rb
morale-client-1.0.0 lib/morale/platform.rb
morale-client-0.0.1 lib/morale/platform.rb