Module: DockerSync::Environment

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

Class Method Summary collapse

Class Method Details

.freebsd?Boolean

Returns:

  • (Boolean)

15
16
17
# File 'lib/docker-sync/environment.rb', line 15

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

.linux?Boolean

Returns:

  • (Boolean)

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

def self.linux?
  return @linux if defined? @linux
  @linux = OS.linux?
end

.mac?Boolean

Returns:

  • (Boolean)

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

def self.mac?
  return @mac if defined? @mac
  @mac = OS.mac?
end