$ pbpaste > config.yml
$ irb
irb(main):001:0> require 'yaml'
=> true
irb(main):008:0> print YAML.load(File.read('config.yml'))[0]['run']
curl https://shipit.ovotech.org.uk/deployments?apikey=$SHIPIT_API_KEY
-d team=bit
-d service=boost-bit-workflows
-d buildId=$CIRCLE_BUILD_NUM
-d "links[0].title=CircleCI build"
-d "links[0].url=$CIRCLE_BUILD_URL"
-d "links[1].title=Diff url"
-d "links[1].url=$CIRCLE_COMPARE_URL"
-d "notifySlackChannel=boost-bit-squad"=> nil
irb(main):009:0>
Ruby’s YAML parser behaves the same as the Java-based one that we are using internally.
I think it’s an indentation issue in the input string.