Flowdock
method

check_file

Importance_0
v1_8_7_330 - Show latest stable - 0 notes - Class: WSDL::XMLSchema::XSD2Ruby
check_file(filename) private

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/wsdl/xmlSchema/xsd2ruby.rb, line 66
  def check_file(filename)
    if @basedir
      filename = File.join(basedir, filename)
    end
    if FileTest.exist?(filename)
      if @opt.key?('force')
        @logger.warn {
          "File '#{filename}' exists but overrides it."
        }
        true
      else
        @logger.warn {
          "File '#{filename}' exists.  #{$0} did not override it."
        }
        false
      end
    else
      @logger.info { "Creates file '#{filename}'." }
      true
    end
  end
Register or log in to add new notes.