class Runter::Runtfile

Public Class Methods

new() click to toggle source
# File lib/runter/runtfile.rb, line 5
def initialize()
  @watchers = []
  load_settings()
end

Public Instance Methods

get_watchers() click to toggle source
# File lib/runter/runtfile.rb, line 18
def get_watchers() 
  return @watchers
end
load_settings() click to toggle source
# File lib/runter/runtfile.rb, line 10
def load_settings()
  if !File.file?('Runtfile')
    raise 'You must created a Runtfile before running runter!'
  end
  JSON.parse(IO.read('Runtfile'))["watchers"].each {|watch|
    @watchers << Runter::Watcher.new(watch)
  }
end