Class: Browserctl::Commands::Record

Inherits:
Object
  • Object
show all
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



11
12
13
14
15
16
17
18
19
# File 'lib/browserctl/commands/record.rb', line 11

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
  end
end