Skip to content

Instantly share code, notes, and snippets.

[Guzzle\Http\Exception\CurlException]
[curl] 3: <url> malformed [url] /environments
Exception trace:
() at /Users/dan/platform-cli/vendor/guzzle/guzzle/src/Guzzle/Http/Curl/CurlMulti.php:338
@dpolant
dpolant / gist:9834053
Created March 28, 2014 14:24
Terminal output from "platform get ismcba52t4xlq"
Daniels-MacBook-Pro-3:sites dan$ platform get -vvv ismcba52t4xlq
Enter a number to choose which environment to checkout:
[0] : Master
0
Cloning into 'ismcba52t4xlq/repository'...
remote: counting objects: 3, done.
Receiving objects: 100% (3/3), done.
Checking connectivity... done.
commerce_kickstart-7.x-2.13 downloaded. [ok]
Found makefile: drupal-org.make [ok]
@dpolant
dpolant / gist:7805783
Created December 5, 2013 14:17
Commerce Coupon redeem function
/**
* Apply a coupon to an order and return success or failure.
*
* @param $code
* Coupon code to reedem.
* @param $order
* The order on which the coupon should be redeemed.
*
* @return bool