Sha256: 8c425872f43e84eedcc9392b6f3865e21377b5c7879be829b0277eb2488c64ce
Contents?: true
Size: 1.79 KB
Versions: 4
Compression:
Stored size: 1.79 KB
Contents
#!/usr/bin/env ruby require 'gli' begin # XXX: Remove this begin/rescue before distributing your app require 'qricker' rescue LoadError exit 64 end include GLI::App program_desc 'Describe your application here' version Qricker::VERSION subcommand_option_handling :normal arguments :strict desc 'collect all podspec file in special pathh' command :collect do |c| c.desc 'the root path to collect podspec files' c.default_value '.' c.flag :p c.desc 'output path' c.default_value "podspecs.rclt" c.flag :o c.action do |global_options,options,args| podspecs = Qricker.allPodSpecs(options[:p]) output = "" if not podspecs.nil? puts "Find Podspecs:" podspecs.each { |f| puts "Name:#{f.name} Path:#{f.path}" output += "[#{f.name}]\n" output += "PATH=#{f.path}\n" } end outputfile = options[:o] File.open(outputfile, "w") { |f| f.write output } end end desc "check the dependency in local specs" command :dependency do |c| c.desc 'the input podspecs.rclt' c.flag [:i, "input-file"], :required=>true c.desc "the spec name" c.flag [:n, "spec-name"], :required=>true, :type=>Array c.action do |global_options,options,args| inputfile = options[:i] specname = options[:n] Qricker.dependency(inputfile, specname) end end pre do |global,command,options,args| # Pre logic here # Return true to proceed; false to abort and not call the # chosen command # Use skips_pre before a command to skip this block # on that command only true end post do |global,command,options,args| # Post logic here # Use skips_post before a command to skip this # block on that command only end on_error do |exception| # Error logic here # return false to skip default error handling true end exit run(ARGV)
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
qricker-0.0.10 | bin/qricker |
qricker-0.0.9 | bin/qricker |
qricker-0.0.8 | bin/qricker |
qricker-0.0.7 | bin/qricker |