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.



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

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

Instance Method Details

#cleanObject



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

def clean
end

#runObject



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

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

#stopObject



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

def stop
end

#watchObject



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

def watch
end

#watch_optionsObject



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

def watch_options
end

#watch_threadObject



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

def watch_thread
  return @watch_thread
end