Method: Bake::Blocks::BlockBase#check_config_file

Defined in:
lib/blocks/blockBase.rb

#check_config_fileObject



17
18
19
20
21
22
23
24
25
26
27
# File 'lib/blocks/blockBase.rb', line 17

def check_config_file()
  if File.exist?(@config.file_name) and File.mtime(@config.file_name) > @config_date
    begin
      FileUtils.touch(@config.file_name) if !Bake.options.dry
    rescue Exception=>e
      if Bake.options.verbose >= 2
        Bake.formatter.printWarning("Could not touch #{@config.file_name}: #{e.message}", @config.file_name)
      end
    end
  end
end