Sha256: cebe4c35a35b26a82f5bc08513dec7f641adafa71c6be8450110952f1fb1dca2

Contents?: true

Size: 251 Bytes

Versions: 20

Compression:

Stored size: 251 Bytes

Contents

Facter.add(:staging_windir) do
  confine :osfamily => :windows
  setcode do
    program_data = `echo %SYSTEMDRIVE%\\ProgramData`.chomp
    if File.directory? program_data
      "#{program_data}\\staging"
    else
      "C:\\staging"
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
puppet-retrospec-1.8.0 spec/fixtures/modules/staging/lib/facter/staging_windir.rb
puppet-retrospec-1.7.0 spec/fixtures/modules/staging/lib/facter/staging_windir.rb
puppet-retrospec-1.6.1 spec/fixtures/modules/staging/lib/facter/staging_windir.rb
puppet-retrospec-1.6.0 spec/fixtures/modules/staging/lib/facter/staging_windir.rb
puppet-retrospec-1.5.0 spec/fixtures/modules/staging/lib/facter/staging_windir.rb
puppet-retrospec-1.4.1 spec/fixtures/modules/staging/lib/facter/staging_windir.rb
puppet-retrospec-1.4.0 spec/fixtures/modules/staging/lib/facter/staging_windir.rb
puppet-retrospec-1.3.2 spec/fixtures/modules/staging/lib/facter/staging_windir.rb
puppet-retrospec-1.3.1 spec/fixtures/modules/staging/lib/facter/staging_windir.rb
puppet-retrospec-1.3.0 spec/fixtures/modules/staging/lib/facter/staging_windir.rb
puppet-retrospec-1.2.1 spec/fixtures/modules/staging/lib/facter/staging_windir.rb
puppet-retrospec-1.2.0 spec/fixtures/modules/staging/lib/facter/staging_windir.rb
puppet-retrospec-1.1.0 spec/fixtures/modules/staging/lib/facter/staging_windir.rb
puppet-retrospec-1.0.0 spec/fixtures/modules/staging/lib/facter/staging_windir.rb
puppet-retrospec-0.12.1 spec/fixtures/modules/staging/lib/facter/staging_windir.rb
puppet-retrospec-0.12.0 spec/fixtures/modules/staging/lib/facter/staging_windir.rb
puppet-retrospec-0.11.0 spec/fixtures/modules/staging/lib/facter/staging_windir.rb
puppet-retrospec-0.10.0 spec/fixtures/modules/staging/lib/facter/staging_windir.rb
puppet-retrospec-0.9.1 spec/fixtures/modules/staging/lib/facter/staging_windir.rb
puppet-retrospec-0.9.0 spec/fixtures/modules/staging/lib/facter/staging_windir.rb