ploy 0.0.30 → 0.0.31

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjE5OTIyODQ0YTUzYzk2ZTUyNjJhMDEwNmU2ZTVmNGQzNWRiODc1OA==
4
+ Y2I0MmFjMzk3ZTIwMmRjMTVkODM4YWE0NzVjNmI5ZTc4MjZhODM0Yg==
5
5
  data.tar.gz: !binary |-
6
- Y2E4Mzg0YWI1MzA3NmU2MDMzMDEyMDA4OWE2M2Y1NWM0NGRkODY4Mg==
6
+ MDU2OWQwZjJkYzYxNjBjYmVkMzQ3NGQ0ZDE5YzU0NjA1OWViZWE0NA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- M2ZiYmMzMTRlMjZhZTBkZDlmMDVhYjRkNDM1ODAyZDcyOGRkYjJlMzUxM2Zk
10
- ZmEyOTg1Zjk4NjJjM2U3YzIyOTVkYzg0NjI3MzU2OTliZWU3YTQ5OTlhOGRm
11
- ZmRkYTNhYzljMWY0NzNlNmIyZGFiY2Y5Yjk2NmI1MGIzODE1MWY=
9
+ OTE0YmUyZDE4NjQxYzZkNzM4OWUxZDI5NDFiYmUxNTVkN2E0ZDRlMmFmNDVh
10
+ ZmVlMWY5MTBiMzY2MjEyNTgyMGY3MGUyZGNmZmE1ZDc2YTY4MTc5MTNhYjg2
11
+ MjVhZmIxYTMxZDFhZDUwYjI3MGY2NGI4YTZiMmVlNjY0MGM5MjE=
12
12
  data.tar.gz: !binary |-
13
- M2M3Mjk3ODNhOWNjYzVhMzU1YzQxYTU1NmRiNGI2YmQ4Yzk3ZDhkYjE5NjI1
14
- ZWU2ZTVkMmI1ZGYxMjY4YzU0ZTQwMzU5MTQ4Nzc1NWFhZjAyNWNlMTNmM2Vl
15
- ODY0MmE2NTk1OTJmMWQzOTJkMjU0YjM0MjQ4NjFjNmRhMTdmNTk=
13
+ OTdjY2ViMzBhMzEwZjIzNGE2NWZmOGNiNDA5ODZjOGE2ZTIwZWE1YTI1ZGYw
14
+ ZWFjYzNhM2VlOWQzNzg5NDIyZmE4ZWVlMzhiYzI0N2Y5NjIzM2Q5ZDZiN2Yz
15
+ NmUyMTZlOGU0NjE1ODQ1MGQwZjNlM2JhNDkxY2M5M2M3NjRiYTA=
@@ -10,7 +10,7 @@ module Ploy
10
10
  def query
11
11
  r = {}
12
12
  puts "query"
13
- Aws::EC2::Resource.new.instances.tagged_values(@stack).each do |i|
13
+ AWS::EC2.new.instances.tagged_values(@stack).each do |i|
14
14
  puts "asking #{i.private_ip_address}"
15
15
  r[i.private_ip_address] = meta(i)
16
16
  end
@@ -7,29 +7,29 @@ module Ploy
7
7
  end
8
8
 
9
9
  def put(path, name, meta = {})
10
- Aws::S3::Resource.new.buckets[@bucketname].objects[name].write(
10
+ AWS::S3.new.buckets[@bucketname].objects[name].write(
11
11
  Pathname.new(path),
12
12
  { :metadata => meta }
13
13
  )
14
14
  end
15
15
 
16
16
  def copy(from, to)
17
- Aws::S3::Resource.new.buckets[@bucketname].objects[from].copy_to(to)
17
+ AWS::S3.new.buckets[@bucketname].objects[from].copy_to(to)
18
18
  end
19
19
 
20
20
  def read(from)
21
- Aws::S3::Resource.new.buckets[@bucketname].objects[from].read
21
+ AWS::S3.new.buckets[@bucketname].objects[from].read
22
22
  end
23
23
 
24
24
  def get(from, fileio)
25
- Aws::S3::Resource.new.buckets[@bucketname].objects[from].read do |chunk|
25
+ AWS::S3.new.buckets[@bucketname].objects[from].read do |chunk|
26
26
  fileio.write(chunk)
27
27
  end
28
28
  fileio.flush
29
29
  end
30
30
 
31
31
  def metadata(loc)
32
- o = Aws::S3::Resource.new.buckets[@bucketname].objects[loc]
32
+ o = AWS::S3.new.buckets[@bucketname].objects[loc]
33
33
  if (o.exists?) then
34
34
  return o.metadata
35
35
  else
@@ -38,7 +38,7 @@ module Ploy
38
38
  end
39
39
 
40
40
  def list
41
- tree = Aws::S3::Resource.new.buckets[@bucketname].as_tree
41
+ tree = AWS::S3.new.buckets[@bucketname].as_tree
42
42
  dirs = tree.children.select(&:branch?).collect(&:prefix)
43
43
  package_names = []
44
44
  dirs.each do |dir|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.30
4
+ version: 0.0.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bruce