Module: Bard::CLI::Open
- Defined in:
- lib/bard/cli/open.rb
Class Method Summary collapse
Class Method Details
.included(mod) ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/bard/cli/open.rb', line 2 def self.included mod mod.class_eval do desc "open [server=production]", "opens the url in the web browser." def open server=:production exec "xdg-open #{config[server].ping.first}" end end end |