Class: AgileNotifier::Commander
- Inherits:
-
Object
- Object
- AgileNotifier::Commander
- Defined in:
- lib/agile_notifier/commander.rb
Class Method Summary collapse
Class Method Details
.order(args) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/agile_notifier/commander.rb', line 6 def order(args) = {} OptionParser.new do |opts| opts. = "Usage: #{caller[-1].match(/\S+\.rb/)} [options]" opts.on('-b', '--build-number [BUILD_NUMBER]', OptionParser::DecimalInteger, 'Trigger by specific build') do |build_number| [:build_number] = build_number end end.parse! end |