Sha256: 7c535a8b8614066cabe8a4a5590991a0a07d385e368f13efaa7d21d4ea4f98e6

Contents?: true

Size: 1.83 KB

Versions: 24

Compression:

Stored size: 1.83 KB

Contents

# == PlatformManager
#
# The PlatformManager provides a way to query platform identifiers, such as
# the operating system distribution's version.
class AutomateIt::PlatformManager < AutomateIt::Plugin::Manager
  # Query the +search+ field. The +search+ can either be a key or a set of
  # keys separated by "#" signs.
  #
  # Examples:
  #   query(:os) # => "linux"
  #   query("arch") # => "i686"
  #   query("os#arch") # => "linux_i686"
  #   query("os#arch#distro#release") # => "linux_i686_ubuntu_6.06"
  #
  # Fields that may be provided by drivers:
  # * :arch -- Hardware architecture, e.g., "i686"
  # * :os -- Operating system, e.g., "linux"
  # * :distro -- Operating system distribution, e.g., "ubuntu"
  # * :release -- Operating system distribution release, e.g., "6.06"
  def query(search) dispatch(search) end

  # Is this a single-vendor operating system? E.g., Windows is, while Linux
  # isn't. This method helps the TagManager determine how to name tags. A
  # single-vendor product uses the "os#release" format (e.g., "windows_xp"),
  # while a multi-vendor product uses a "distro#release" format
  # ("ubuntu_6.06").
  def single_vendor?() dispatch() end

  # Return an array of tags for this platform.
  def tags() dispatch() end
end

# == PlatformManager::BaseDriver
#
# Base class for all PlatformManager drivers.
class AutomateIt::PlatformManager::BaseDriver < AutomateIt::Plugin::Driver
end

# Drivers
require 'automateit/platform_manager/struct'
require 'automateit/platform_manager/uname'
require 'automateit/platform_manager/lsb'
require 'automateit/platform_manager/debian'
require 'automateit/platform_manager/gentoo'
require 'automateit/platform_manager/darwin'
require 'automateit/platform_manager/windows'
require 'automateit/platform_manager/freebsd'
require 'automateit/platform_manager/sunos'
require 'automateit/platform_manager/openbsd'

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
automate-it-0.9.2 lib/automateit/platform_manager.rb
automate-it-0.9.1 lib/automateit/platform_manager.rb
automate-it-0.9.0 lib/automateit/platform_manager.rb
automateit-0.71021 lib/automateit/platform_manager.rb
automateit-0.71030 lib/automateit/platform_manager.rb
automateit-0.71031.1 lib/automateit/platform_manager.rb
automateit-0.71031.2 lib/automateit/platform_manager.rb
automateit-0.71103 lib/automateit/platform_manager.rb
automateit-0.71102 lib/automateit/platform_manager.rb
automateit-0.71101.2 lib/automateit/platform_manager.rb
automateit-0.71101 lib/automateit/platform_manager.rb
automateit-0.71101.1 lib/automateit/platform_manager.rb
automateit-0.71031 lib/automateit/platform_manager.rb
automateit-0.71104 lib/automateit/platform_manager.rb
automateit-0.71111 lib/automateit/platform_manager.rb
automateit-0.71112 lib/automateit/platform_manager.rb
automateit-0.71219 lib/automateit/platform_manager.rb
automateit-0.71220 lib/automateit/platform_manager.rb
automateit-0.71221 lib/automateit/platform_manager.rb
automateit-0.71226.1 lib/automateit/platform_manager.rb