Class: DockerSync::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

#fork_exec, #thread_exec, #with_time

Constructor Details

#initialize(sync_name, options) ⇒ Dummy

Returns a new instance of Dummy.



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

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

Instance Method Details

#cleanObject



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

def clean
end

#runObject



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

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

#stopObject



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

def stop
end

#watchObject



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

def watch
end

#watch_forkObject



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

def watch_fork
  return @watch_fork
end

#watch_optionsObject



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

def watch_options
end

#watch_threadObject



42
43
44
# File 'lib/docker-sync/watch_strategy/dummy.rb', line 42

def watch_thread
  return @watch_thread
end