Module: PuppetFixtures

Defined in:
lib/puppet_fixtures.rb

Overview

PuppetFixtures is a mechanism to download Puppet fixtures.

These fixtures can be symlinks, repositories (git or Mercurial) or forge modules.

Defined Under Namespace

Modules: Repository Classes: Fixtures, Metadata, Symlink

Class Method Summary collapse

Class Method Details

.windows?Boolean

Returns true if the os is a windows system.

Returns:

  • (Boolean)

    true if the os is a windows system



14
15
16
17
18
# File 'lib/puppet_fixtures.rb', line 14

def self.windows?
  # Ruby only sets File::ALT_SEPARATOR on Windows and Rubys standard library
  # uses this to check for Windows
  !!File::ALT_SEPARATOR
end