Comments on: Using Ruby for system scripts https://lizards.opensuse.org/2009/01/14/using-ruby-for-system-scripts/ Blogs and Ramblings of the openSUSE Members Fri, 06 Mar 2020 17:50:09 +0000 hourly 1 https://wordpress.org/?v=4.7.5 By: Christopher Hobbs https://lizards.opensuse.org/2009/01/14/using-ruby-for-system-scripts/#comment-625 Thu, 15 Jan 2009 16:02:30 +0000 http://lizards.opensuse.org/?p=336#comment-625 Good eye!

I didn’t copy and paste this from the script I originally pulled it from because of the strange formatting in WordPress. I got in a bit of a hurry and jumped ahead of myself here.

I also just noticed that my indenting didn’t stick with the post, I’ll have to fix that somehow.

Thanks for the correction!

]]>
By: drboolean https://lizards.opensuse.org/2009/01/14/using-ruby-for-system-scripts/#comment-624 Thu, 15 Jan 2009 15:56:13 +0000 http://lizards.opensuse.org/?p=336#comment-624 Don’t mean to be a stickler, but someone might really get stuck on this.

works:
def zypper (option)
“\”/usr/bin/zypper\” #{option}”
end

doesn’t:
def zypper (option)
zypper_output = `”/usr/bin/zypper” #{option}`
return zypper_output
end

]]>