astrails-safe 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/astrails/safe/s3.rb +1 -1
- data/lib/astrails/safe/sftp.rb +2 -2
- metadata +1 -1
data/VERSION.yml
CHANGED
data/lib/astrails/safe/s3.rb
CHANGED
@@ -37,7 +37,7 @@ module Astrails
|
|
37
37
|
return unless keep = @config[:keep, :s3]
|
38
38
|
|
39
39
|
|
40
|
-
puts "listing files
|
40
|
+
puts "listing files: #{bucket}:#{base}*" if $_VERBOSE
|
41
41
|
files = AWS::S3::Bucket.objects(bucket, :prefix => base, :max_keys => keep * 2)
|
42
42
|
puts files.collect {|x| x.key} if $_VERBOSE
|
43
43
|
|
data/lib/astrails/safe/sftp.rb
CHANGED
@@ -43,9 +43,9 @@ module Astrails
|
|
43
43
|
|
44
44
|
return unless keep = @config[:keep, :sftp]
|
45
45
|
|
46
|
-
puts "listing files
|
46
|
+
puts "listing files: #{host}:#{base}*" if $_VERBOSE
|
47
47
|
Net::SFTP.start(host, user, :password => password) do |sftp|
|
48
|
-
files = sftp.dir.glob(path,
|
48
|
+
files = sftp.dir.glob(path, File.basename("#{base}*"))
|
49
49
|
|
50
50
|
puts files.collect {|x| x.name } if $_VERBOSE
|
51
51
|
|