akamai_ccu 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/lib/akamai_ccu/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23c8f51bd575edd26c6b894865f7391445318de2
|
4
|
+
data.tar.gz: 47ac17ae6124b4877f1a0c9ec54da001c80b3365
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 044f99170c8f99d25a0fd79367c64746ee16bbd7254edac8ddf2663b5f7465f5a135d3e58025b8e0bf0e4be496d06be42fc02e73e18ff734242583f1dc0227f8
|
7
|
+
data.tar.gz: b08165cfce374e692d88703c948fb0e0865f6df46adab9ad96292c97ec72526aca982310c0af0695d3290c0f74bec07592f62f1f8514ac8d269b4f02aaff1296
|
data/README.md
CHANGED
@@ -59,10 +59,10 @@ gem install akamai_ccu
|
|
59
59
|
This gem requires you have a valid Akamai Luna Control Center account, enabled to use the CCU APIs.
|
60
60
|
Akamai relies on a credentials file with three secret keys and a dedicated host for API authorization.
|
61
61
|
Detailing how to get this file is out of the scope of this readme, check Akamai's [official documentation](https://developer.akamai.com/introduction/Conf_Client.html) for that.
|
62
|
-
Suffice to say have two main options:
|
62
|
+
Suffice to say you have two main options:
|
63
63
|
|
64
64
|
#### edgerc
|
65
|
-
You can generate (by facility
|
65
|
+
You can generate (by facility script or by hand) a specific file named `.edgerc`:
|
66
66
|
```
|
67
67
|
[default]
|
68
68
|
client_secret = xxx=
|
@@ -88,7 +88,7 @@ client_token = akab-client-token-xxx-xxx
|
|
88
88
|
You can obviously use the gem directly inside your Ruby's script:
|
89
89
|
|
90
90
|
#### Secret
|
91
|
-
Once you've got
|
91
|
+
Once you've got APIs credentials, you can instantiate the secret object aimed to generate the authorization header:
|
92
92
|
```ruby
|
93
93
|
require "akamai_ccu"
|
94
94
|
|
@@ -130,7 +130,7 @@ wrapper = AkamaiCCU::Wrapper.new(secret: secret, endpoint: AkamaiCCU::Endpoint.b
|
|
130
130
|
wrapper.call(%w[https://akaa-baseurl-xxx-xxx.luna.akamaiapis.net/*.css])
|
131
131
|
|
132
132
|
# switch to deleting on production
|
133
|
-
wrapper.
|
133
|
+
wrapper.endpoint = AkamaiCCU::Endpoint.by_name("delete_by_cpcode!")
|
134
134
|
wrapper.call([12345, 98765])
|
135
135
|
```
|
136
136
|
|
data/lib/akamai_ccu/version.rb
CHANGED