panoramix 0.7.22 → 0.7.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/panoramix/plugin/s3.rb +2 -1
  2. metadata +2 -2
@@ -29,7 +29,8 @@ module Panoramix
29
29
  # When this instance needs to be executed
30
30
  def needed? timestamps
31
31
  return true if !created?
32
- File.mtime(@dst) < timestamp
32
+ remote_size = shell("aws s3 ls --summarize #{@src} | head -n1 | awk 'END {print $3}'", true)[:out]
33
+ File.mtime(@dst) < timestamp || File.size(@dst) != remote_size.to_i
33
34
  end
34
35
 
35
36
  # Has this instance already been created
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: panoramix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.22
4
+ version: 0.7.23
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-05-19 00:00:00.000000000 Z
12
+ date: 2016-06-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: pry