Method: Command::OpenConsole#call
- Defined in:
- lib/command/open_console.rb
#call ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/command/open_console.rb', line 16 def call workload = config.[:workload] url = "https://console.cpln.io/console/org/#{config.org}/gvc/#{config.app}" url += "/workload/#{workload}" if workload url += "/-info" opener = Shell.cmd("which", "xdg-open", "open")[:output].split("\n").grep_v("not found").first Kernel.exec(opener, url) end |