Module: Guardrc

Defined in:
lib/guardrc/guardrc.rb,
lib/guardrc/version.rb

Constant Summary collapse

VERSION =
"0.3"

Class Method Summary collapse

Class Method Details

.at(path) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
# File 'lib/guardrc/guardrc.rb', line 3

def Guardrc.at(path)
  puts "Guardrc is looking for extra commands at #{path}" if path
  @path = File.expand_path(path)
  if File.exists?(@path)
    File.open(@path, 'r') { |f| @cache = f.read }
    puts "Guardrc has loaded your auxiliary commands!"
  else
    puts "Guardrc did not find any file at #{@path}"
  end
  return @cache
end