module DockerSync::Dependencies
Constants
- UNSUPPORTED_OPERATING_SYSTEM
Public Class Methods
ensure_all!(config)
click to toggle source
# File lib/docker-sync/dependencies.rb, line 13 def self.ensure_all!(config) return if ENV['DOCKER_SYNC_SKIP_DEPENDENCIES_CHECK'] return ensure_all_for_mac!(config) if Environment.mac? return ensure_all_for_linux!(config) if Environment.linux? return ensure_all_for_freebsd!(config) if Environment.freebsd? raise(UNSUPPORTED_OPERATING_SYSTEM) end
ensure_all_for_freebsd!(config)
click to toggle source
# File lib/docker-sync/dependencies.rb, line 34 def self.ensure_all_for_freebsd!(config) Docker.ensure! Unison.ensure! if config.unison_required? Rsync.ensure! if config.rsync_required? Fswatch.forbid! if config.fswatch_required? end
ensure_all_for_linux!(config)
click to toggle source
# File lib/docker-sync/dependencies.rb, line 29 def self.ensure_all_for_linux!(config) Docker.ensure! Fswatch.forbid! if config.fswatch_required? end
ensure_all_for_mac!(config)
click to toggle source
# File lib/docker-sync/dependencies.rb, line 21 def self.ensure_all_for_mac!(config) PackageManager.ensure! Docker.ensure! Unison.ensure! if config.unison_required? Rsync.ensure! if config.rsync_required? Fswatch.ensure! if config.fswatch_required? end