class DockerSync::WatchStrategy::Remote_logs
Public Class Methods
new(sync_name, options)
click to toggle source
# File lib/docker-sync/watch_strategy/remotelogs.rb, line 15 def initialize(sync_name, options) @options = options @sync_name = sync_name @watch_fork = nil @watch_thread = nil @unison = DockerSync::SyncStrategy::NativeOsx.new(@sync_name, @options) end
Public Instance Methods
clean()
click to toggle source
# File lib/docker-sync/watch_strategy/remotelogs.rb, line 32 def clean end
run()
click to toggle source
# File lib/docker-sync/watch_strategy/remotelogs.rb, line 23 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 = thread_exec(cmd, 'Sync Log:') end
stop()
click to toggle source
# File lib/docker-sync/watch_strategy/remotelogs.rb, line 29 def stop end
watch()
click to toggle source
# File lib/docker-sync/watch_strategy/remotelogs.rb, line 35 def watch end
watch_fork()
click to toggle source
# File lib/docker-sync/watch_strategy/remotelogs.rb, line 41 def watch_fork return @watch_fork end
watch_options()
click to toggle source
# File lib/docker-sync/watch_strategy/remotelogs.rb, line 38 def watch_options end
watch_thread()
click to toggle source
# File lib/docker-sync/watch_strategy/remotelogs.rb, line 45 def watch_thread return @watch_thread end