akamai_api 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a91d1f5aebb3714f21a4983711443dc53d42c808
4
- data.tar.gz: 55d3facb0f58d82c7f45e95476094a0162b9d1c8
3
+ metadata.gz: b5471cead7136c03a256bfa36ee7e0ff4deebe75
4
+ data.tar.gz: ca5fc17984627473a1ef8ca0bba3d71323c50dc9
5
5
  SHA512:
6
- metadata.gz: aaf0f4bd70819e4f9155a64557cb87c1c55c84a3ccc1d5161ffeadebbb3ea0da85c4aad9c336fce154c40793e5395c961265297bc3a82f40947616262d753f43
7
- data.tar.gz: 93645a4059240cc6b97942f0d56ff5ca65ad90e69bb2e031f98d5d2aeeae2d411a4598acb3349e243fa96130793ac6b1ef8be76068890ee92ec459060599116c
6
+ metadata.gz: 71bfc3d69a49793659cb20aa4beefc2c52078fc1f9c546c7145e463f26a0748edfb1cc7ba27dbf1af48e4f455bdbd22c2f4421fa523ffd7c2acafadbfceef8e7
7
+ data.tar.gz: 5d7b81ba09fbe655bc59386173f9628cc445551dd7027c5b876d68c414d19c3794034607ca3f016264d71de63a73f9ad65162104bfaed93f66eeba1fd884451f
data/README.md CHANGED
@@ -7,6 +7,7 @@ AkamaiApi is a ruby library and command line utility to interact with Akamai CCU
7
7
  After gem installation you will have a CLI utility to execute operations on Akamai. Each method requires authentication. You can provide auth info using one of the following methods:
8
8
 
9
9
  - Passing --username (-u) and --password (-p) arguments at each invocation
10
+ - Set ENV variables: AKAMAI_USERNAME and AKAMAI_PASSWORD
10
11
  - Creating a config file in your HOME directory named .akamai_api.yml with the following format:
11
12
 
12
13
  ```yaml
@@ -47,8 +48,8 @@ In the CCU interface you can work with CP Codes and ARLs.
47
48
 
48
49
  When removing or invalidating a CP Code you can provide the following optional arguments:
49
50
 
50
- - *--domain*: Specify if you want to work with *production* or *staging*. This is a completely optional argument and usually you don't need to set it.
51
- - *--emails*: Specify the list of email used by Akamai to send notifications about the purge request.
51
+ - *--domain*, *-d*: Specify if you want to work with *production* or *staging*. This is a completely optional argument and usually you don't need to set it.
52
+ - *--emails*, *-e*: Specify the list of email used by Akamai to send notifications about the purge request.
52
53
 
53
54
  ### ARL
54
55
 
@@ -60,8 +61,8 @@ When removing or invalidating a CP Code you can provide the following optional a
60
61
 
61
62
  When removing or invalidating an ARL you can provide the following optional arguments:
62
63
 
63
- - *--domain*: Specify if you want to work with *production* or *staging*. This is a completely optional argument and usually you don't need to set it.
64
- - *--emails*: Specify the list of email used by Akamai to send notifications about the purge request.
64
+ - *--domain*, *-d*: Specify if you want to work with *production* or *staging*. This is a completely optional argument and usually you don't need to set it.
65
+ - *--emails*, *-e*: Specify the list of email used by Akamai to send notifications about the purge request.
65
66
 
66
67
  ## ECCU
67
68
 
@@ -12,6 +12,8 @@ module AkamaiApi
12
12
  config = YAML::load_file(config_file).symbolize_keys
13
13
  if options[:username] && options[:password]
14
14
  config.merge! :auth => [options[:username], options[:password]]
15
+ elsif ENV['AKAMAI_USERNAME'] && ENV['AKAMAI_PASSWORD']
16
+ config.merge! :auth => [ENV['AKAMAI_USERNAME'], ENV['AKAMAI_PASSWORD']]
15
17
  end
16
18
  if config[:auth].nil? || config[:auth].compact.blank?
17
19
  raise "#{config_file} does not exist or doesn't contain auth info and you didn't specify username and password options"
@@ -21,4 +23,4 @@ module AkamaiApi
21
23
  end
22
24
  end
23
25
  end
24
- end
26
+ end
@@ -1,3 +1,3 @@
1
1
  module AkamaiApi
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: akamai_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicola Racco
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-02 00:00:00.000000000 Z
11
+ date: 2013-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport