Class: Browserctl::Commands::Record
- Inherits:
-
Object
- Object
- Browserctl::Commands::Record
- Defined in:
- lib/browserctl/commands/record.rb
Constant Summary collapse
- USAGE =
"Usage: browserctl record start <name> | stop [--out PATH] | status"
Class Method Summary collapse
Class Method Details
.run(args) ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/browserctl/commands/record.rb', line 12 def self.run(args) subcmd = args.shift case subcmd when "start" then run_start(args) when "stop" then run_stop(args) when "status" then run_status else abort "#{USAGE}\nRun 'browserctl record <subcommand> --help' for details." end end |