Class: AutomateIt::PlatformManager::Windows

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

Overview

PlatformManager::Windows

A PlatformManager driver for Windows systems.

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, 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

#available?Boolean

Returns:

  • (Boolean)


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

def available?
  return RUBY_PLATFORM.match(/mswin/) ? true : false
end

#query(search) ⇒ Object



32
33
34
35
# File 'lib/automateit/platform_manager/windows.rb', line 32

def query(search)
  _prepare
  super(search)
end

#single_vendor?Boolean

Returns:

  • (Boolean)


37
38
39
# File 'lib/automateit/platform_manager/windows.rb', line 37

def single_vendor?
  return true
end

#suitability(method, *args) ⇒ Object

:nodoc:



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

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