Class: Docker_Sync::WatchStrategy::Dummy

Inherits:
Object
  • Object
show all
Includes:
Execution, Thor::Shell
Defined in:
lib/docker-sync/watch_strategy/dummy.rb

Instance Method Summary collapse

Methods included from Execution

#forkexec, #threadexec

Constructor Details

#initialize(sync_name, options) ⇒ Dummy

Returns a new instance of Dummy.



15
16
17
18
19
# File 'lib/docker-sync/watch_strategy/dummy.rb', line 15

def initialize(sync_name, options)
  @options = options
  @sync_name = sync_name
  @watch_thread = nil
end

Instance Method Details

#cleanObject



28
29
# File 'lib/docker-sync/watch_strategy/dummy.rb', line 28

def clean
end

#runObject



21
22
23
# File 'lib/docker-sync/watch_strategy/dummy.rb', line 21

def run
  say_status 'success', 'Watcher disabled by configuration' if @options['verbose']
end

#stopObject



25
26
# File 'lib/docker-sync/watch_strategy/dummy.rb', line 25

def stop
end

#watchObject



31
32
# File 'lib/docker-sync/watch_strategy/dummy.rb', line 31

def watch
end

#watch_optionsObject



34
35
# File 'lib/docker-sync/watch_strategy/dummy.rb', line 34

def watch_options
end

#watch_threadObject



37
38
39
# File 'lib/docker-sync/watch_strategy/dummy.rb', line 37

def watch_thread
  return @watch_thread
end