Permalink
Browse files

move storage service from service:storage:* to storage:*

  • Loading branch information...
gimler committed Feb 1, 2013
1 parent 739c9e9 commit 813268443e7dbd686f278ed1cd817dcbbd6a9ce5
View
@@ -1,2 +1,6 @@
-webservices.xml
+services.json
vendor
+*.cer
+*.pem
+*.pfx
+composer.lock
View
@@ -28,6 +28,12 @@ then:
$ sudo chmod a+x /usr/local/bin/pazure
+### Define Service
+
+Copy the service definition and add your `subscription_id` and `key_path` see also [Sourcing from a JSON document](http://guzzlephp.org/tour/using_services.html#sourcing-from-a-json-document)
+
+ $ cp services.json.dist services.json
+
Then, just run `pazure` in order to run pazure
Update
View
@@ -17,6 +17,7 @@
"php": ">=5.3.2",
"pazure/guzzle-azure": "dev-master",
"cilex/cilex": "dev-master",
+ "cilex/console-service-provider": "dev-master",
"symfony/filesystem": "2.1.*",
"symfony/validator": "2.1.*"
},
View
2 pazure
@@ -37,7 +37,7 @@ $app->command(new \Pazure\Command\Services\Hosted\DeleteCommand());
#if (!$filesystem->isAbsolutePath($path)) {
# $path = getcwd().DIRECTORY_SEPARATOR.$path;
#}
-$path = getcwd().DIRECTORY_SEPARATOR.'/webservices.xml';
+$path = getcwd().DIRECTORY_SEPARATOR.'services.json';
$app->register(new \Cilex\Provider\GuzzleServiceProvider(), array('guzzle.configs' => $path));
$app->register(new \Cilex\Provider\ValidatorServiceProvider());
View
@@ -0,0 +1,11 @@
+{
+ "services": {
+ "azure": {
+ "class": "\\Guzzle\\Azure\\AzureClient",
+ "params": {
+ "subscription_id": "[your-subscription-id]",
+ "key_path": "[your-key-path]"
+ }
+ }
+ }
+}
View
@@ -1,9 +0,0 @@
-<?xml version="1.0" ?>
-<guzzle>
- <clients>
- <client name="azure" class="Guzzle.Azure.AzureClient">
- <param name="subscription_id" value="my-subscription-id" />
- <param name="key_path" value="my.pem" />
- </client>
- </clients>
-</guzzle>

0 comments on commit 8132684

Please sign in to comment.