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 <<-END, __FILE__, __LINE__ + 1
    # Open the WatchTower server in the browser
    #
    # TODO: Should be able to determine the port of the server.
    desc "open", "Open the WatchTower in the browser"
    def open
      system "open http://localhost:9282"
    end
  END
end