class Pedant::CommandTest
Public Class Methods
binding()
click to toggle source
# File lib/pedant/commands/test.rb, line 29 def self.binding 'test' end
help()
click to toggle source
# File lib/pedant/commands/test.rb, line 33 def self.help @@optparse.to_s end
optparse(options, args)
click to toggle source
# File lib/pedant/commands/test.rb, line 37 def self.optparse(options, args) @@optparse = OptionParser.new do |opts| opts.banner = "Usage: pedant [global-options] #{binding} [command-options] [args]" opts.separator "" opts.separator "Common operations:" opts.on('-h', '--help', 'Display this help screen.') do puts opts exit 1 end end @@optparse.order!(args) return options, args end
run_all(opts, args)
click to toggle source
# File lib/pedant/commands/test.rb, line 55 def self.run_all(opts, args) Test.initialize!(args) end