Module: Charleston::Checks
- Defined in:
- lib/charleston/checks.rb
Class Method Summary collapse
Class Method Details
.available?(executable) ⇒ Boolean
7 8 9 10 11 |
# File 'lib/charleston/checks.rb', line 7 def self.available?(executable) path_entries.detect do |e| FileTest.executable? File.join(e, 'haml') end end |
.haml_available? ⇒ Boolean
3 4 5 |
# File 'lib/charleston/checks.rb', line 3 def self.haml_available? available? 'haml' end |
.path_entries ⇒ Object
13 14 15 |
# File 'lib/charleston/checks.rb', line 13 def self.path_entries ENV['PATH'].split(':') end |