Class: Circler::WatchCommand
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Circler::WatchCommand
- Defined in:
- lib/circler/command/watch_command.rb
Class Method Summary collapse
Methods inherited from BaseCommand
build_number, project_name, reponame, setup_token
Class Method Details
.run(options) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/circler/command/watch_command.rb', line 4 def run() setup_token build = get_build() if !build.nil? && build.running? say 'Connecting to pusher'.blue setup_client say 'Connected'.blue start_watch(build) wait_until_finish finalize(build, build.channel_name) else say 'The build is not running' end end |