Module: DockerSync::Environment

Defined in:
lib/docker-sync/environment.rb

Class Method Summary collapse

Class Method Details

.default_ignoresObject



25
26
27
# File 'lib/docker-sync/environment.rb', line 25

def self.default_ignores()
  ['.docker-sync/daemon.log', '.docker-sync/daemon.pid']
end

.freebsd?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/docker-sync/environment.rb', line 17

def self.freebsd?
  @freebsd ||= OS.freebsd?
end

.linux?Boolean

Returns:

  • (Boolean)


5
6
7
8
9
# File 'lib/docker-sync/environment.rb', line 5

def self.linux?
  return @linux if defined? @linux

  @linux = OS.linux?
end

.mac?Boolean

Returns:

  • (Boolean)


11
12
13
14
15
# File 'lib/docker-sync/environment.rb', line 11

def self.mac?
  return @mac if defined? @mac

  @mac = OS.mac?
end

.system(cmd) ⇒ Object



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

def self.system(cmd)
  defined?(Bundler) ? Bundler.unbundled_system(cmd) : Kernel.system(cmd)
end