Sha256: ff0aee75ceecfba4a6ba0c28fb4f79b17829c97ffe2e421359e60a9bcd7895b7

Contents?: true

Size: 648 Bytes

Versions: 24

Compression:

Stored size: 648 Bytes

Contents

# == PlatformManager::OpenBSD
#
# A PlatformManager driver for OpenBSD.
class AutomateIt::PlatformManager::OpenBSD < AutomateIt::PlatformManager::Uname
  def self.token
    :openbsd
  end

  depends_on :files => %w(/obsd /bsd /bsd.rd), :directories => %w(/altroot /stand)

  def suitability(method, *args) # :nodoc:
    # Must be higher than PlatformManager::Struct
    return available? ? 3 : 0
  end

  def _prepare
    return if @struct[:distro]
    @struct[:distro] = `uname -s`.strip.downcase
    @struct[:release] = `uname -r`.strip.downcase
    @struct
  end
  private :_prepare

  def query(search)
    _prepare
    super(search)
  end
end

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
automate-it-0.9.2 lib/automateit/platform_manager/openbsd.rb
automate-it-0.9.1 lib/automateit/platform_manager/openbsd.rb
automate-it-0.9.0 lib/automateit/platform_manager/openbsd.rb
automateit-0.71031.2 lib/automateit/platform_manager/openbsd.rb
automateit-0.71021 lib/automateit/platform_manager/openbsd.rb
automateit-0.71030 lib/automateit/platform_manager/openbsd.rb
automateit-0.71031.1 lib/automateit/platform_manager/openbsd.rb
automateit-0.71102 lib/automateit/platform_manager/openbsd.rb
automateit-0.71103 lib/automateit/platform_manager/openbsd.rb
automateit-0.71031 lib/automateit/platform_manager/openbsd.rb
automateit-0.71101.2 lib/automateit/platform_manager/openbsd.rb
automateit-0.71101.1 lib/automateit/platform_manager/openbsd.rb
automateit-0.71101 lib/automateit/platform_manager/openbsd.rb
automateit-0.71221 lib/automateit/platform_manager/openbsd.rb
automateit-0.71104 lib/automateit/platform_manager/openbsd.rb
automateit-0.71111 lib/automateit/platform_manager/openbsd.rb
automateit-0.71112 lib/automateit/platform_manager/openbsd.rb
automateit-0.71219 lib/automateit/platform_manager/openbsd.rb
automateit-0.71220 lib/automateit/platform_manager/openbsd.rb
automateit-0.71226.1 lib/automateit/platform_manager/openbsd.rb