I'm trying to display the output of "curl" on the console when I execute it. It prints the declared statement in puts
for all hostnames I've written down, which is according to the design.
desc "check_app_version ;" checks ap / dev / info page "def check_app_version (environment, project) check_anerirement (Environment) Machine = `knife node list`. Espresso machine.each dot Hostname | Checking the app-version for the "# {Hostname}" system ("curl-syilent-m5 # {hostname}: 8080 / dev / info | grep 'app \ | build'") End End
But I do not see anything for the next line which instructs me to curl on my server.
Use backtick notation to return a string, then puts
Return
to `curl --silent -m5 # hostname}: 8080 / dev / info | Grep 'application \ | Build '
No comments:
Post a Comment