samus 1.2.3 → 1.2.4

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: 8526da0e0bdecfb2c1cb37fa0a0097350750c095
4
- data.tar.gz: c4043287518ec9183c419083cbba4c858783dec8
3
+ metadata.gz: 3de12a6065d5699aba5c95b08bdce58aae14279e
4
+ data.tar.gz: c0e9f870f82a855d66fbfd0b0fc9b4cec6d07f32
5
5
  SHA512:
6
- metadata.gz: c539e410d4c576fcbf3d924f11d67dee33442b04578fe028dbb328ad2107a64b180dc7c3129f42fe9417b59f4c37a30cc98d5df8ef1edcd2e712e6e7effd41fa
7
- data.tar.gz: e6491d866bd86d6c032d745cb5a17b33d93bc8a54e734112c3f1d37ee8364a539f5e7c8469586698ce7e5ef5aab2927d91dac8574fe5fd4cdf9e8dbd356e8641
6
+ metadata.gz: f383e7f72b7faee4f3c681abb27b05824aef368356f6de6e3502aeef939c0b8bd99230601aabc39631f9d6c097641b16d5ba9c9204f9d740cac93a5ebe7a6a75
7
+ data.tar.gz: 5860da816580213d6c55572b3cb099a69d685030fe36aa7ab10d28128613193d3381c16f3e3a2b15411a81e266f3e0af27e19a4630aca93e23f1b403b1d47568
@@ -1,16 +1,11 @@
1
- #!/usr/bin/env ruby
1
+ #!/bin/sh
2
2
 
3
- ENV['AWS_ACCESS_KEY_ID'] = ENV['__creds_key']
4
- ENV['AWS_SECRET_ACCESS_KEY'] = ENV['__creds_secret']
3
+ qty="$#"
4
+ items=`python -c 'import sys, json; print json.dumps(sys.argv[1:])' $*`
5
+ ref=`date`
5
6
 
6
- require 'aws-sdk-core'
7
-
8
- Aws.config[:region] = ENV['_region']
9
- Aws.cloudfront.create_invalidation(
10
- distribution_id: ENV['_distribution'],
11
- invalidation_batch: {
12
- paths: {
13
- quantity: ARGV.size,
14
- items: ARGV },
15
- caller_reference: Time.now.to_s
16
- })
7
+ aws configure set preview.cloudfront true
8
+ aws cloudfront create-invalidation \
9
+ --region $_region \
10
+ --distribution-id $_distribution \
11
+ --invalidation-batch '{"Paths":{"Quantity":'$qty',"Items":'$items'},"CallerReference":"'$ref'"}'
@@ -1,3 +1,3 @@
1
1
  module Samus
2
- VERSION = '1.2.3'
2
+ VERSION = '1.2.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: samus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Loren Segal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-30 00:00:00.000000000 Z
11
+ date: 2014-06-13 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: lsegal@soen.ca