Sha256: 0ba472ebe6b40d634499ed132fa44be4aa563353bc968770668607b26d4e175a
Contents?: true
Size: 1.37 KB
Versions: 5
Compression:
Stored size: 1.37 KB
Contents
# coding: utf-8 require 'thor' module Bombard class Cli < Thor OPTIONS = [:builder, :publisher, :require, :publisher_opts, :builder_opts] package_name :bombard default_task :default # Siege options class_option :delay, type: :string, aliases: :l, required: false class_option :duration, type: :string, aliases: :d, required: false class_option :users, type: :numeric, aliases: :u, required: false class_option :agent, type: :string, aliases: :A, required: false class_option :header, type: :string, aliases: :H, required: false class_option :internet, type: :boolean, aliases: :i, required: false class_option :benchmark, type: :boolean, aliases: :e, required: false class_option :verbose, type: :boolean, aliases: :v, required: false # Bombard options class_option :builder, type: :string, aliases: :b, required: false class_option :publisher, type: :string, aliases: :p, required: false class_option :require, type: :string, aliases: :r, required: false class_option :publisher_opts, type: :string, aliases: :P, required: false class_option :builder_opts, type: :string, aliases: :B, required: false desc 'default', 'Runs without specifying a task. ie. bombard --etc', hide: true def default Bombard.start(options.dup) end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
bombard-0.1.0 | lib/bombard/cli.rb |
bombard-0.0.6 | lib/bombard/cli.rb |
bombard-0.0.5 | lib/bombard/cli.rb |
bombard-0.0.4 | lib/bombard/cli.rb |
bombard-0.0.3 | lib/bombard/cli.rb |