Module: AutoGemsets

Defined in:
lib/auto-gemsets.rb,
lib/auto-gemsets/application.rb

Defined Under Namespace

Classes: Application

Constant Summary collapse

ROOT =
File.expand_path(File.join(File.dirname(__FILE__), '..'))
GEMSET_ROOT =
ENV['GEMSET_ROOT'] || File.join(ENV['HOME'], '.gemsets')
INSTALL_ROOT =
File.join('/', 'usr', 'local', 'share', 'auto_gemsets')
VERSION =
File.read "#{ROOT}/VERSION"
HELP =
File.read "#{ROOT}/HELP.md"

Class Method Summary collapse

Class Method Details

.applicationObject



8
9
10
# File 'lib/auto-gemsets/application.rb', line 8

def application
  @application ||= AutoGemsets::Application.new
end

.on_linux?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/auto-gemsets.rb', line 20

def self.on_linux?
  on_unix? and not on_osx?
end

.on_osx?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/auto-gemsets.rb', line 12

def self.on_osx?
 (/darwin/ =~ RUBY_PLATFORM) != nil
end

.on_unix?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/auto-gemsets.rb', line 16

def self.on_unix?
  !on_windows?
end

.on_windows?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/auto-gemsets.rb', line 8

def self.on_windows?
  (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil
end