Module: Browserctl::Commands::Resume
- Extended by:
- CliOutput
- Defined in:
- lib/browserctl/commands/resume.rb
Class Method Summary collapse
Methods included from CliOutput
Class Method Details
.run(client, args) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/browserctl/commands/resume.rb', line 10 def self.run(client, args) name = args.shift or abort "usage: browserctl resume <page>" res = client.resume(name) if res[:error] warn "Error: #{res[:error]}" exit 1 end puts "Page '#{name}' resumed." end |