ploy 0.0.29 → 0.0.30

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
- ZTNmN2MyZTJlY2RkZjQ1OTY1ZjQwYjFhMmE5MTRlYTQ4NWI2NTY5Yw==
4
+ YjE5OTIyODQ0YTUzYzk2ZTUyNjJhMDEwNmU2ZTVmNGQzNWRiODc1OA==
5
5
  data.tar.gz: !binary |-
6
- NTVlODY4ZGM5MjY3YzJmZDdlZWI2ZDE1MTFlZmZjNWY3ZTFhYWE0YQ==
6
+ Y2E4Mzg0YWI1MzA3NmU2MDMzMDEyMDA4OWE2M2Y1NWM0NGRkODY4Mg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjFhZTJmODIxNGFlNmE4MjJjZGUxMTY3ZTk2MzQ3OTdmMTI3N2E1OThiZWI1
10
- YzczZmMwNGVkYjU3YTNhMmNmZDQwMzAyMTljNGZmZTdmY2U5MTk1ZDlmNzJi
11
- OTU5Y2IwY2ZlZTI5NmExZTc2ZDdkNDI1NjIxNTk4MTU3MmM5NmI=
9
+ M2ZiYmMzMTRlMjZhZTBkZDlmMDVhYjRkNDM1ODAyZDcyOGRkYjJlMzUxM2Zk
10
+ ZmEyOTg1Zjk4NjJjM2U3YzIyOTVkYzg0NjI3MzU2OTliZWU3YTQ5OTlhOGRm
11
+ ZmRkYTNhYzljMWY0NzNlNmIyZGFiY2Y5Yjk2NmI1MGIzODE1MWY=
12
12
  data.tar.gz: !binary |-
13
- MmNlNmU5ODgyMjJhYWJlYjA5ODc2NTNmNzE4YzczNDZkMzM2ODU0ZmMzMDJj
14
- NTI5NDI2NTA5NTNkOWU0NWFiZTk1MjMyODMwNGU4MTQxMWM2OTViN2Y1ZGUx
15
- M2RmMDJhZTQwNzhmOGI1YjkyODE4MzQxYmE2OTQ2YjljZDJiOTk=
13
+ M2M3Mjk3ODNhOWNjYzVhMzU1YzQxYTU1NmRiNGI2YmQ4Yzk3ZDhkYjE5NjI1
14
+ ZWU2ZTVkMmI1ZGYxMjY4YzU0ZTQwMzU5MTQ4Nzc1NWFhZjAyNWNlMTNmM2Vl
15
+ ODY0MmE2NTk1OTJmMWQzOTJkMjU0YjM0MjQ4NjFjNmRhMTdmNTk=
@@ -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::Resource.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::Resource.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::Resource.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::Resource.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::Resource.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::Resource.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::Resource.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.29
4
+ version: 0.0.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bruce