Class: AutomateIt::PlatformManager::OpenBSD

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

Overview

PlatformManager::OpenBSD

A PlatformManager driver for OpenBSD.

Constant Summary

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

Class Method Summary collapse

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

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

Class Method Details

.tokenObject



5
6
7
# File 'lib/automateit/platform_manager/openbsd.rb', line 5

def self.token
  :openbsd
end

Instance Method Details

#query(search) ⇒ Object



24
25
26
27
# File 'lib/automateit/platform_manager/openbsd.rb', line 24

def query(search)
  _prepare
  super(search)
end

#suitability(method, *args) ⇒ Object

:nodoc:



11
12
13
14
# File 'lib/automateit/platform_manager/openbsd.rb', line 11

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