Module: Quartz::Validations
- Defined in:
- lib/quartz/validations.rb
Class Method Summary collapse
Class Method Details
.check_for_go ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/quartz/validations.rb', line 3 def self.check_for_go go_exists = ENV['PATH'].split(File::PATH_SEPARATOR).any? do |directory| File.exist?(File.join(directory, 'go')) end raise Quartz::ConfigError, 'Go not installed.' unless go_exists end |