Sha256: 2217148f574841b41bacee3c220e8d37cb103d1cec2f156d2f3b53eb2646830d

Contents?: true

Size: 596 Bytes

Versions: 31

Compression:

Stored size: 596 Bytes

Contents

# == PlatformManager::Debian
#
# A PlatformManager driver for Debian Linux.
class AutomateIt::PlatformManager::Debian < AutomateIt::PlatformManager::Uname
  VERSION_FILE = "/etc/debian_version"

  depends_on :files => [VERSION_FILE]

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

  def _prepare
    return if @struct[:distro]
    @struct[:distro] = "debian"
    @struct[:release] = File.read(VERSION_FILE).strip
    @struct
  end
  private :_prepare

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

Version data entries

31 entries across 31 versions & 2 rubygems

Version Path
automateit-0.71104 lib/automateit/platform_manager/debian.rb
automateit-0.71221 lib/automateit/platform_manager/debian.rb
automateit-0.71220 lib/automateit/platform_manager/debian.rb
automateit-0.71111 lib/automateit/platform_manager/debian.rb
automateit-0.71219 lib/automateit/platform_manager/debian.rb
automateit-0.71112 lib/automateit/platform_manager/debian.rb
automateit-0.71226.1 lib/automateit/platform_manager/debian.rb
automateit-0.71230 lib/automateit/platform_manager/debian.rb
automateit-0.80624 lib/automateit/platform_manager/debian.rb
automateit-0.71226 lib/automateit/platform_manager/debian.rb
automateit-0.80116 lib/automateit/platform_manager/debian.rb