Class: GDK::Command::Open
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- GDK::Command::Open
- Defined in:
- lib/gdk/command/open.rb
Overview
Handles ‘gdk reconfigure` command execution
Instance Attribute Summary
Attributes inherited from BaseCommand
Instance Method Summary collapse
Methods inherited from BaseCommand
#config, #display_help_message, #initialize, #print_help, #print_ready_message, #ready_messages, validate_config?
Constructor Details
This class inherits a constructor from GDK::Command::BaseCommand
Instance Method Details
#help ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/gdk/command/open.rb', line 16 def help <<~HELP Usage: gdk open [<args>] -h, --help Display help --wait-until-ready Wait until the GitLab web UI is ready before opening in your default web browser HELP end |
#run(args = []) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/gdk/command/open.rb', line 9 def run(args = []) return true if print_help(args) return wait_until_ready if args.delete('--wait-until-ready') open_exec end |