Sha256: 06409e480b6d873d32fc9b4ee4f4ad04f32270a43f722b793e2f848cc1002bf2

Contents?: true

Size: 407 Bytes

Versions: 5

Compression:

Stored size: 407 Bytes

Contents

require 'os'

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

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

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
docker-sync-0.5.14 lib/docker-sync/environment.rb
docker-sync-0.5.13 lib/docker-sync/environment.rb
docker-sync-0.5.11 lib/docker-sync/environment.rb
docker-sync-0.5.11.pre.beta3 lib/docker-sync/environment.rb
docker-sync-0.5.11.pre.beta2 lib/docker-sync/environment.rb