pipely 0.14.0 → 0.14.1

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: c7b441e79e14a90c03f6db511d4e8504ac5f8360
4
- data.tar.gz: 692e36969e5b3100caa338d474127498ee870df6
3
+ metadata.gz: f76f0852a53f6da5311f1c7583103fa9528df97f
4
+ data.tar.gz: b7d017cf685697be1c3797144cd48bd7f9d5b237
5
5
  SHA512:
6
- metadata.gz: 153c54d53fcbdc2f123616d5284e303df8f4b5b557520eb65d774d7873bbd206a90fbfb9e5e68235f37747eef030979b8bdd3dcaf745774702bfae6ea997b75c
7
- data.tar.gz: 3f3b17eb81bc8e5b712cc5ddc5e23785e52c3cb7ba9f60882aec6069851e4ee4c97ff80c5b53c6b739c790c71228f788ddf7c025afeb214b417fd184f6f5226f
6
+ metadata.gz: f3f109976a467641e3499661a712607366a621aafdc1c6f67c09fbddbf49cf56cf1782d1434fabe75b4c20b6290a41b88544c324c081485a48647fdcec0dc369
7
+ data.tar.gz: 1a7bf4e634e356f9f34c3bfcb32ed2d7d9303341f17b17d65155f6166381e621b23351467a85b21668195053532767ad54ad1da03c93bd9474f1e1e1a8458bd6
@@ -4,6 +4,7 @@ module Pipely
4
4
 
5
5
  # Represent a pipeline that has been deployed to AWS DataPipeline
6
6
  class LivePipeline
7
+ attr_reader :pipeline_id
7
8
 
8
9
  def initialize(pipeline_id)
9
10
  @pipeline_id = pipeline_id
@@ -84,25 +85,30 @@ module Pipely
84
85
  end
85
86
 
86
87
  def all_instances
87
- result = {}
88
88
  pipeline_objects = []
89
+ marker = nil
89
90
 
90
91
  begin
91
92
  result = data_pipeline.query_objects(
92
93
  pipeline_id: pipeline_id,
93
94
  sphere: "INSTANCE",
94
- marker: result.marker,
95
+ marker: marker,
95
96
  )
96
97
 
98
+ marker = result.marker
99
+
97
100
  instance_details = data_pipeline.describe_objects(
98
101
  pipeline_id: pipeline_id,
99
102
  object_ids: result.ids
100
103
  )
101
104
 
102
- data_pipeline.describe_objects(pipeline_id, result['ids'])
105
+ data_pipeline.describe_objects(
106
+ pipeline_id: pipeline_id,
107
+ object_ids: result.ids
108
+ )
103
109
  pipeline_objects += instance_details.pipeline_objects
104
110
 
105
- end while (result.has_more_results && result.marker)
111
+ end while (result.has_more_results && marker)
106
112
 
107
113
  pipeline_objects
108
114
  end
@@ -1,3 +1,3 @@
1
1
  module Pipely
2
- VERSION = '0.14.0' unless defined?(::Pipely::VERSION)
2
+ VERSION = '0.14.1' unless defined?(::Pipely::VERSION)
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pipely
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.14.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Gillooly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-24 00:00:00.000000000 Z
11
+ date: 2015-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-graphviz
@@ -331,7 +331,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
331
331
  version: '0'
332
332
  requirements: []
333
333
  rubyforge_project:
334
- rubygems_version: 2.4.5
334
+ rubygems_version: 2.2.2
335
335
  signing_key:
336
336
  specification_version: 4
337
337
  summary: Generate dependency graphs from pipeline definitions.