Module: AutoGemsets
- Defined in:
- lib/auto-gemsets.rb,
lib/auto-gemsets/application.rb
Defined Under Namespace
Classes: Application
Constant Summary collapse
- ROOT =
File.(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
- .application ⇒ Object
- .on_linux? ⇒ Boolean
- .on_osx? ⇒ Boolean
- .on_unix? ⇒ Boolean
- .on_windows? ⇒ Boolean
Class Method Details
.application ⇒ Object
8 9 10 |
# File 'lib/auto-gemsets/application.rb', line 8 def application @application ||= AutoGemsets::Application.new end |
.on_linux? ⇒ 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
12 13 14 |
# File 'lib/auto-gemsets.rb', line 12 def self.on_osx? (/darwin/ =~ RUBY_PLATFORM) != nil end |
.on_unix? ⇒ Boolean
16 17 18 |
# File 'lib/auto-gemsets.rb', line 16 def self.on_unix? !on_windows? end |
.on_windows? ⇒ 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 |