diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2014-06-24 10:09:10 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2014-06-24 10:09:10 -0700 |
commit | 86b123e52e59a00f7a48da7479a40df72e1cfbd7 (patch) | |
tree | 8d7122e47a53ef4823b9adb60262bf01bcf0dadc /lib/ohai/system.rb | |
parent | 0fa02ae5849f51f6caafdf422aa79409251458aa (diff) | |
download | ohai-86b123e52e59a00f7a48da7479a40df72e1cfbd7.tar.gz |
convert to using ffi-yajl
Diffstat (limited to 'lib/ohai/system.rb')
-rw-r--r-- | lib/ohai/system.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ohai/system.rb b/lib/ohai/system.rb index 6d941b45..9f836087 100644 --- a/lib/ohai/system.rb +++ b/lib/ohai/system.rb @@ -29,7 +29,7 @@ require 'ohai/provides_map' require 'ohai/hints' require 'mixlib/shellout' -require 'yajl' +require 'ffi_yajl' module Ohai class System @@ -173,14 +173,14 @@ module Ohai # Serialize this object as a hash # def to_json - Yajl::Encoder.new.encode(@data) + FFI_Yajl::Encoder.new.encode(@data) end # # Pretty Print this object as JSON # def json_pretty_print(item=nil) - Yajl::Encoder.new(:pretty => true).encode(item || @data) + FFI_Yajl::Encoder.new(:pretty => true).encode(item || @data) end def attributes_print(a) |