diff options
author | Theodore Nordsieck <theo@opscode.com> | 2013-08-13 17:21:09 -0700 |
---|---|---|
committer | Theodore Nordsieck <theo@opscode.com> | 2013-08-13 17:21:09 -0700 |
commit | d7652c4d68c5832b189acc47d7405d2bd6b3f99c (patch) | |
tree | 7363ef48fc6e6237f83a32cb17b2d73f32ffa0e2 | |
parent | 1c87fa07c34c8c8a7395f2ba6eaad97fbb63d837 (diff) | |
download | ohai-d7652c4d68c5832b189acc47d7405d2bd6b3f99c.tar.gz |
Resolved some potential convusion
-rw-r--r-- | CROSS_PLATFORM.md | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/CROSS_PLATFORM.md b/CROSS_PLATFORM.md index 339c7519..3c6f2762 100644 --- a/CROSS_PLATFORM.md +++ b/CROSS_PLATFORM.md @@ -40,12 +40,18 @@ In general, you should only add a string to env if it affects the execution of t Run the get_output.rb command to collect data. Both "parameters" and "env" are comma separated lists of strings. If any of the parameters begins with the "-" character, that parameter needs to be adjacent to its flag, as in the example: - ruby get_output.rb -c "python" -p'-c "import sys; print sys.version"' -f "osx-10.8.4" -a x64 -e python + ruby get_output.rb -c python -p'-c "import sys; print sys.version"' -f "osx-10.8.4" -a x64 -e python + +One thing to note: -p is a comma separated list of strings. Each string will be treated as a complete set of parameters and run individually. For example + + ruby get_output.rb -c ls -p',-l' -f "osx-10.8" -a x64 -e + +Would cause get_output.rb to collect the output of both the "ls" and "ls -l" commands. ## Adding data to the library To add data to the library, copy the output of the get_output.rb command to the file named <command>.output in the ohai/spec/data/plugins directory. For example, if I collected data using the command - ruby get_output.rb -c "ls" -p',-l' -f "osx-10.8" -a x64 -e + ruby get_output.rb -c ls -p',-l' -f "osx-10.8" -a x64 -e I would copy the output and paste it to the end of the ls.output file in ohai/spec/data/plugins. If there is no ls.output file, create one.
\ No newline at end of file |