Module: WatchTower::CLI::Open::InstanceMethods
- Defined in:
- lib/watch_tower/cli/open.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/watch_tower/cli/open.rb', line 12 def self.included(base) base.class_eval " # Open the WatchTower server in the browser\n #\n # TODO: Should be able to determine the port of the server.\n desc \"open\", \"Open the WatchTower in the browser\"\n def open\n system \"open http://localhost:9282\"\n end\n END\nend\n", __FILE__, __LINE__ + 1 |