method

check_file

Importance_0
v1_8_6_287 - Show latest stable - 0 notes - Class: WSDL::SOAP::WSDL2Ruby
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/soap/wsdl2ruby.rb, line 139
  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.