Skip to content

Instantly share code, notes, and snippets.

@chewmanfoo
Created February 15, 2016 21:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save chewmanfoo/d095f28ec5636c5a3a7a to your computer and use it in GitHub Desktop.
Save chewmanfoo/d095f28ec5636c5a3a7a to your computer and use it in GitHub Desktop.
backticks
def insert_default_parameters(_template_path, _role, _portsin)
#TODO fix this shit
out = `echo #{_template_path};ls #{_template_path}`
p "****** after test ******"
p out
#foo="/var/lib/jenkins/jobs/Create\ a\ Security\ Group/workspace/corpit-cloudformation-vm-provisioning/environments/cit_production/int/cit-p-wbap_sg.json"
foo="#{_template_path}".gsub("\\","")
tfile = File.read(foo)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment