lib/hastie2/report_watcher.rb
# this is done just as a double check that we are in a report directory
this is done just as a double check that we are in a report directory
this is done just as a double check that we are in a report directory
def check_report_file
      self.report_dir = File.expand_path(path)
      report_config_file = File.join(report_dir, Hastie2.report_config_name)
      if !File.exists? report_config_file
        say_status "error","Cannot locate #{Hastie2.report_config_name}.", :red
        say_status "error","Directory #{self.report_dir} is not a report.", :red
        exit(1)
      end
    end
def check_report_file self . report_dir = File . expand_path ( path ) report_config_file = File . join ( report_dir , Hastie2 . report_config_name ) if ! File . exists? report_config_file say_status "error" , "Cannot locate #{Hastie2.report_config_name}." , :red say_status "error" , "Directory #{self.report_dir} is not a report." , :red exit ( 1 ) end end
this is done just as a double check that we are in a report directory
this is done just as a double check that we are in a report directory