Class: AutomateIt::PlatformManager::Debian

Inherits:
Uname show all
Defined in:
lib/automateit/platform_manager/debian.rb

Overview

PlatformManager::Debian

A PlatformManager driver for Debian Linux.

Constant Summary collapse

VERSION_FILE =
"/etc/debian_version"

Constants inherited from AutomateIt::Plugin::Driver

AutomateIt::Plugin::Driver::BASE_DRIVER_NAME

Constants included from Constants

Constants::HELPERS_DIR, Constants::INSTALL_DIR, Constants::PERROR, Constants::PEXEC, Constants::PNOTE, Constants::WARNING_BOILERPLATE

Instance Attribute Summary

Attributes inherited from Struct

#key_aliases

Attributes inherited from AutomateIt::Plugin::Driver

#manager

Attributes inherited from Common

#interpreter

Instance Method Summary collapse

Methods inherited from Uname

#setup

Methods inherited from Struct

#setup, #single_vendor?, #tags

Methods inherited from AutomateIt::Plugin::Driver

abstract_driver, #available?, base_driver, base_driver?, depends_on, inherited, manager_token, #setup

Methods inherited from AutomateIt::Plugin::Base

#setup, #token, token

Methods inherited from Common

#initialize, #log, #nitpick, #noop, #noop=, #noop?, #preview, #preview=, #preview?, #preview_for, #setup, #superuser?, #writing, #writing=, #writing?

Constructor Details

This class inherits a constructor from AutomateIt::Common

Instance Method Details

#query(search) ⇒ Object



22
23
24
25
# File 'lib/automateit/platform_manager/debian.rb', line 22

def query(search)
  _prepare
  super(search)
end

#suitability(method, *args) ⇒ Object

:nodoc:



9
10
11
12
# File 'lib/automateit/platform_manager/debian.rb', line 9

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