| Class | AutomateIt::PlatformManager |
| In: |
lib/automateit/platform_manager.rb
|
| Parent: | AutomateIt::Plugin::Manager |
The PlatformManager provides a way to query platform identifiers, such as the operating system distribution‘s version.
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:
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").