Sha256: f4948094ebb9ea52ac56d00a6abe1c7ec18cca2e73fabbf7af47329686f9f699
Contents?: true
Size: 1015 Bytes
Versions: 1
Compression:
Stored size: 1015 Bytes
Contents
require 'thor/shell' require 'docker-sync/execution' module Docker_Sync module WatchStrategy class Remote_logs include Thor::Shell include Execution @options @sync_name @watch_fork @watch_thread def initialize(sync_name, options) @options = options @sync_name = sync_name @watch_fork = nil @watch_thread = nil @unison = Docker_Sync::SyncStrategy::NativeOsx.new(@sync_name, @options) end def run say_status 'success', "Showing unison logs from your sync container: #{@unison.get_container_name}", :green cmd = "docker exec #{@unison.get_container_name} tail -f /tmp/unison.log" @watch_thread = threadexec(cmd, 'Sync Log:') end def stop end def clean end def watch end def watch_options end def watch_fork return @watch_fork end def watch_thread return @watch_thread end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
docker-sync-0.4.3.pre.beta1 | lib/docker-sync/watch_strategy/remotelogs.rb |