Class: AutomateIt::PlatformManager::Darwin

Inherits:
Struct show all
Defined in:
lib/automateit/platform_manager/darwin.rb

Overview

PlatformManager::Darwin

A PlatformManager driver for Appleā€™s Darwin.

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

Instance Method Summary collapse

Methods inherited from Struct

#setup, #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/darwin.rb', line 22

def query(search)
  _prepare
  super(search)
end

#single_vendor?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/automateit/platform_manager/darwin.rb', line 27

def single_vendor?
  return true
end

#suitability(method, *args) ⇒ Object

:nodoc:



7
8
9
10
# File 'lib/automateit/platform_manager/darwin.rb', line 7

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