Without more context it’s hard to debug what is causing your error. In
general, asking for input this way is a very bad idea (as Chef is
usually intended to be run stand-alone, without a user at the
That said, there is no reason it won’t work. You probably want to do
STDIN.gets, just for safety.
On Fri, Sep 23, 2011 at 5:23 AM, firstname.lastname@example.org wrote:
Hello All. Can anybody clarify that is CHEF able to work with STDIN.
Recipe should take inputs that will allow to set various variables .
I tried to do it with ruby_block but it says “error: No such file or
directory - -c”
Here is ruby block :
ruby_block “puts_some_text” do
print("Enter your variable: ")
a_string = gets
Adam Jacob, Chief Product Officer
T: (206) 619-7151 E: email@example.com