Sha256: 3c65bf29de6afe412c54d079b8e9c2dd0573b1b7a5d18fc45f30ceb2bfed4583

Contents?: true

Size: 172 Bytes

Versions: 16

Compression:

Stored size: 172 Bytes

Contents

Facter.add(:foo) do
  setcode do
    cmd = Gem.win_platform? ? 'cmd /k "exit 99"' : 'sh -c "exit 99"'
    Facter::Core::Execution.execute(cmd);
    $?.exitstatus
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
facter-3.12.2.cfacter.20181217 ext/facter/facter/lib/tests/fixtures/ruby/uses_exit_code.rb
facter-3.12.1.cfacter.20181031 ext/facter/facter/lib/tests/fixtures/ruby/uses_exit_code.rb
facter-3.11.6.cfacter.20181031 ext/facter/facter/lib/tests/fixtures/ruby/uses_exit_code.rb
facter-3.12.1.cfacter.20181023 ext/facter/facter/lib/tests/fixtures/ruby/uses_exit_code.rb
facter-3.11.5.cfacter.20181022 ext/facter/facter/lib/tests/fixtures/ruby/uses_exit_code.rb
facter-3.12.0.cfacter.20181004 ext/facter/facter/lib/tests/fixtures/ruby/uses_exit_code.rb
facter-3.12.0.cfacter.20181001 ext/facter/facter/lib/tests/fixtures/ruby/uses_exit_code.rb
facter-3.12.0.cfacter.20180918 ext/facter/facter/lib/tests/fixtures/ruby/uses_exit_code.rb
facter-3.11.4.cfacter.20180821 ext/facter/facter/lib/tests/fixtures/ruby/uses_exit_code.rb
facter-3.11.3.cfacter.20180716 ext/facter/facter/lib/tests/fixtures/ruby/uses_exit_code.rb
facter-3.11.2.cfacter.20180612 ext/facter/facter/lib/tests/fixtures/ruby/uses_exit_code.rb
facter-3.9.6.cfacter.20180612 ext/facter/facter/lib/tests/fixtures/ruby/uses_exit_code.rb
facter-3.11.2.cfacter.20180606 ext/facter/facter/lib/tests/fixtures/ruby/uses_exit_code.rb
facter-3.9.6.cfacter.20180606 ext/facter/facter/lib/tests/fixtures/ruby/uses_exit_code.rb
facter-3.11.0.cfacter.20180319 ext/facter/facter/lib/tests/fixtures/ruby/uses_exit_code.rb
cfacter-3.11.0.rc.20180314 ext/facter/facter/lib/tests/fixtures/ruby/uses_exit_code.rb