- From: Hedge Hog <
>
- To:
- Subject: [chef] Accessing Knife's return values within a script (without shelling out)
- Date: Thu, 14 Apr 2011 22:22:56 +1000
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=d773SwykI8rppYU4zvzIg+yaQRhWxKxRWrFbG8Ly8bjflgnXuicl0qViuDFQcN1bDc 6Wyrr676YDItApPrQwRcHjxVJMPfsfPVjDs9dnqkZXkBpOtrtrLDg6gZOEa5DFx6Z69T WVMGxUoxG1GEdNfXW8hrdAvhbULGDyK5YsjMk=
Hi,
Having got to run Knife commands from a script, without shelling out,
all that remains is to be able to have whichever Knife method return
the data from the show and list sub-commands.
This too does not seem to be trivial, does anyone have any pointers,
tips or tricks?
Redirecting Knife's puts output is not trivial, Knife uses STDOUT
throughout (tut, tut) rather than the recommended $stdout.
The knife run method has output as its last method rather than
returning the data :(
Appreciate any help.
--
πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα
[The fox knows many things, but the hedgehog knows one big thing.]
Archilochus, Greek poet (c. 680 BC – c. 645 BC)
http://wiki.hedgehogshiatus.com
- [chef] Accessing Knife's return values within a script (without shelling out), Hedge Hog, 04/14/2011
Archive powered by MHonArc 2.6.16.