Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Changeset 1241

Show
Ignore:
Timestamp:
05/16/04 19:29:26 (5 years ago)
Author:
nahi
Message:

* follow ClassDefCreator? signature change.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/bin/wsdl2ruby.rb

    r1227 r1241  
    2727    ['--driver','-d', GetoptLong::OPTIONAL_ARGUMENT], 
    2828    ['--force','-f', GetoptLong::NO_ARGUMENT], 
     29    ['--quiet','-q', GetoptLong::NO_ARGUMENT], 
    2930 ] 
    3031 
     
    3637    @wsdl = nil 
    3738    @name = nil 
     39    self.level = Logger::FATAL 
    3840  end 
    3941 
    4042  def run 
    4143    @wsdl_location, @opt = parse_opt(GetoptLong.new(*OptSet)) 
     44    if @opt['quiet'] 
     45      self.level = Logger::FATAL 
     46    else 
     47      self.level = Logger::INFO 
     48    end 
    4249    usage_exit unless @wsdl_location 
    4350    @wsdl = import(@wsdl_location) 
     
    8592  --driver [porttypename] 
    8693  --force 
     94  --quiet 
    8795 
    8896Terminology: 
     
    121129        when "--force" 
    122130          opt['force'] = true 
     131        when "--quiet" 
     132          opt['quiet'] = true 
    123133        else 
    124134          raise ArgumentError.new("Unknown type #{ arg }") 
     
    136146    check_file(@classdef_filename) or return 
    137147    File.open(@classdef_filename, "w") do |f| 
    138       f << WSDL::SOAP::ClassDefCreator.new( 
    139         @wsdl.collect_complextypes, @wsdl).dump 
     148      f << WSDL::SOAP::ClassDefCreator.new(@wsdl).dump 
    140149    end 
    141150  end