summaryrefslogtreecommitdiff
path: root/lib/ohai/plugins/c.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add missing debug log message for xlc missing on AIXmissing_logTim Smith2017-12-021-0/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* autofixing cops for 0.5.0Lamont Granquist2017-06-201-10/+9
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Only look for xlc on AIX and rename collect_cc to collect_sunproTim Smith2017-01-231-3/+9
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Rework the specs to be platform specificTim Smith2017-01-201-1/+1
| | | | | | | | | | Add specs for checking that xcode exists on darwin Remove the odd double glibc mess Don't do ruby logic in the expects. That defeats the entire purpose of the specs if we're doing the same faulty logic. Just include the expected string Signed-off-by: Tim Smith <tsmith@chef.io>
* Fix gcc data collectionTim Smith2017-01-201-36/+51
| | | | | | | | | | | | | | | | | | None of the values were being populated with the refactoring. Also gcc hadn’t been collecting anything for a while. This gives us real data for gcc: "c": { "gcc": { "configured_with": "--prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1", "description": "Apple LLVM version 8.0.0 (clang-800.0.42.1)", "version": "8.0.0", "target": "x86_64-apple-darwin16.3.0", "thread_model": "posix" } },
* Update GCC sample outputTim Smith2017-01-201-15/+17
|
* Don't check CC on DarwinTim Smith2017-01-201-4/+1
| | | | | CC is clang on Darwin and the output is different so this just fails every time. We *should* add clang checks at some point though.
* Remove extra windows check for glibcTim Smith2017-01-201-1/+0
| | | | | We’re only collecting this data on Windows now so don’t bother checking if we’re on Windows again
* Consistent loggingTim Smith2017-01-201-4/+3
|
* Further split out platforms in the C pluginTim Smith2017-01-201-4/+8
| | | | | cl / devenv are windows only so avoid checking those on *nix HP UX things should only get checked on HPUX
* add colons back to debug logErik Gomez2017-01-201-2/+2
| | | | Signed-off-by: Erik Gomez <e@eriknicolasgomez.com>
* move functions to topErik Gomez2017-01-201-25/+27
| | | | Signed-off-by: Erik Gomez <e@eriknicolasgomez.com>
* fixed ChefstyleErik Gomez2017-01-201-2/+2
| | | | Signed-off-by: Erik Gomez <e@eriknicolasgomez.com>
* refactor c.rb based on PR feedbackErik Gomez2017-01-201-60/+71
| | | | Signed-off-by: Erik Gomez <e@eriknicolasgomez.com>
* fix gcc and cc for darwin (no cli tools installed)Erik Gomez2017-01-201-21/+58
| | | | | | | | | If darwin is found: 1. shell out to /usr/bin/xcode-select -p 2a. If it returns an exit code other than 0, assume xcode command line tools are not installed and do not run these commands. 2b. If it returns an exit code of 0, run the commands. Signed-off-by: Erik Gomez <e@eriknicolasgomez.com>
* Better debug loggingTim Smith2016-12-221-2/+2
| | | | | | | | | Gracefully fail in virtual box Include plugin name in more logs Be consistent in the log output format Help figure out how Virtualization systems were detected with logging Signed-off-by: Tim Smith <tsmith@chef.io>
* Add additional logging to the C pluginplugin_cleanupTim Smith2016-04-201-2/+12
|
* Language plugins: Improve failure logging, update spec format, include ↵Tim Smith2016-04-191-1/+1
| | | | sample output in code
* Don't execute .so libs for WindowsSalim Alam2016-04-131-1/+1
|
* C plugin uses new shell_out helper.mcquin2016-04-011-66/+48
|
* Update chefstyle to 0.3.1 and fix new offenses.chefstyle-0.3.1mcquin2016-04-011-1/+1
|
* chefstyle catchup for ohaiLamont Granquist2016-02-111-3/+3
| | | | | there's still a few cops that are unaddressed by this change, so it won't be clean after merging this.
* OC-11083 MS C compiler plugin regression -- trailing return character removalAdam Edwards2014-01-171-1/+1
|
* update plugin filesClaire McQuin2013-10-171-1/+1
|
* wipTheodore Nordsieck2013-09-241-53/+74
|
* Converted plugins/c to Mixlib::ShellOut.Theodore Nordsieck2013-09-111-23/+23
|
* create/update spec testsClaire McQuin2013-08-191-1/+1
|
* randomize plugin class namesClaire McQuin2013-08-131-1/+1
|
* convert plugins to new dsl.Claire McQuin2013-08-071-78/+82
|
* [OHAI-256] fix aix xlc detectionDoug MacEachern2011-04-061-5/+5
|
* Merge branch 'OHAI-224'Bryan McLellan2011-04-061-1/+1
|\
| * [OHAI-224] Don't pick up sun C compiler on HP-UX systemsDoug MacEachern2011-01-281-1/+1
| |
| * [OHAI-224] Don't pick up sun C compiler on non-sun systemsCaleb Tennis2010-10-221-1/+1
| |
* | newer redhat flavors dont have /lib/libc.so.6, try /lib64 tooDoug MacEachern2011-04-061-7/+10
| |
* | [OHAI-210] fix languages::c glibc version matchingDoug MacEachern2011-04-061-1/+1
|/
* (OHAI-195) Add languages::c pluginDoug MacEachern2010-05-121-0/+107