diff options
| author | Theodore Nordsieck <theo@opscode.com> | 2013-09-07 00:51:22 -0700 |
|---|---|---|
| committer | Theodore Nordsieck <theo@opscode.com> | 2013-09-11 16:13:22 -0700 |
| commit | 205d9d5dcad4c1a62575c3bafc1e8797011bc420 (patch) | |
| tree | 57f822ac93e191a789f2e4bafb243029d1fe8d7a /lib/ohai/plugins/php.rb | |
| parent | 3a9620506975f25056eb122f70ae35330450cbae (diff) | |
| download | ohai-205d9d5dcad4c1a62575c3bafc1e8797011bc420.tar.gz | |
Converted plugins/php to Mixlib::ShellOut.
Diffstat (limited to 'lib/ohai/plugins/php.rb')
| -rw-r--r-- | lib/ohai/plugins/php.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ohai/plugins/php.rb b/lib/ohai/plugins/php.rb index f62470d2..3cdb3543 100644 --- a/lib/ohai/plugins/php.rb +++ b/lib/ohai/plugins/php.rb @@ -26,9 +26,9 @@ Ohai.plugin do php = Mash.new - status, stdout, stderr = run_command(:no_status_check => true, :command => "php -v") - if status == 0 - output = stdout.split + so = shell_out("php -v") + if so.exitstatus == 0 + output = so.stdout.split if output.length >= 6 php[:version] = output[1] php[:builddate] = "%s %s %s" % [output[4],output[5],output[6]] |
