pipedream 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +2 -2
- data/README.md +1 -1
- data/lib/pipedream/core.rb +3 -3
- data/lib/pipedream/dsl/pipeline/codebuild.rb +3 -4
- data/lib/pipedream/evaluate.rb +1 -1
- data/lib/pipedream/init.rb +1 -1
- data/lib/pipedream/pipeline.rb +1 -1
- data/lib/pipedream/role.rb +1 -1
- data/lib/pipedream/schedule.rb +1 -1
- data/lib/pipedream/setting.rb +3 -3
- data/lib/pipedream/sns.rb +1 -1
- data/lib/pipedream/start.rb +2 -2
- data/lib/pipedream/version.rb +1 -1
- data/lib/pipedream/webhook.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a955b6a15876413b9ae3788a8b99fdfe1d34e615fb530dc4c6d5d200bd9eeed
|
4
|
+
data.tar.gz: 0503d2c439697f7546afb678c293df90b53a36b6478d27170e9bcbbb2d898254
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb726218c6865adeaced56d28b53a62b0bf2dc126af83e017a175cf0daf05ef9e0bc2567fb0e3289a1349faa81df45a324f7c581fc8442041da72a486b865702
|
7
|
+
data.tar.gz: ec3e61313f3e1754a70e3b7c67eee5f172f6c9f26b8aaea01e137b6927a83a72d64ee8a7a75af3d4e94f828c2daf858c26fd5a4f69deb36c34ab1ffce39ad587
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
pipedream (0.4.
|
4
|
+
pipedream (0.4.2)
|
5
5
|
activesupport
|
6
6
|
aws-sdk-cloudformation
|
7
7
|
aws-sdk-codepipeline
|
@@ -83,7 +83,7 @@ GEM
|
|
83
83
|
rspec-mocks (3.8.1)
|
84
84
|
diff-lcs (>= 1.2.0, < 2.0)
|
85
85
|
rspec-support (~> 3.8.0)
|
86
|
-
rspec-support (3.8.
|
86
|
+
rspec-support (3.8.3)
|
87
87
|
simplecov (0.13.0)
|
88
88
|
docile (~> 1.1.0)
|
89
89
|
json (>= 1.8, < 3)
|
data/README.md
CHANGED
@@ -32,7 +32,7 @@ First, run `pipe init` to generate a starter `.pipedream` folder structure.
|
|
32
32
|
File | Description
|
33
33
|
--- | ---
|
34
34
|
pipeline.rb | The CodePipeline pipeline written as a DSL. This is required. Here are the [Pipeline DSL docs](https://pipedream.run/docs/dsl/pipeline/)
|
35
|
-
schedule.rb | A CloudWatch scheduled event written as a DSL. Here are the [
|
35
|
+
schedule.rb | A CloudWatch scheduled event written as a DSL. Here are the [Schedule DSL docs](https://pipedream.run/docs/dsl/schedule/)
|
36
36
|
|
37
37
|
## DSL
|
38
38
|
|
data/lib/pipedream/core.rb
CHANGED
@@ -45,12 +45,12 @@ module Pipedream
|
|
45
45
|
end
|
46
46
|
memoize :settings
|
47
47
|
|
48
|
-
def
|
48
|
+
def check_pipedream_project!
|
49
49
|
check_path = "#{Pipedream.root}/.pipedream"
|
50
50
|
unless File.exist?(check_path)
|
51
|
-
puts "ERROR: No .pipedream folder found. Are you sure you are in a project with
|
51
|
+
puts "ERROR: No .pipedream folder found. Are you sure you are in a project with pipedream setup?".color(:red)
|
52
52
|
puts "Current directory: #{Dir.pwd}"
|
53
|
-
puts "If you want to set up
|
53
|
+
puts "If you want to set up pipedream for this prjoect, please create a settings file via: pipe init"
|
54
54
|
exit 1 unless ENV['TEST']
|
55
55
|
end
|
56
56
|
end
|
@@ -23,11 +23,10 @@ module Pipedream::Dsl::Pipeline
|
|
23
23
|
configuration: { project_name: name },
|
24
24
|
)
|
25
25
|
else # Hash
|
26
|
-
# With the hash,
|
27
|
-
|
28
|
-
# Handy shorthands
|
29
|
-
# The project name will allow this syntax
|
26
|
+
# With the hash notation, user needs to set: name and project_name
|
27
|
+
#
|
30
28
|
# codebuild(name: "action-name", project_name: "codebuild-project-names")
|
29
|
+
#
|
31
30
|
project_name = item.delete(:project_name)
|
32
31
|
if project_name
|
33
32
|
item[:configuration] = { project_name: project_name }
|
data/lib/pipedream/evaluate.rb
CHANGED
data/lib/pipedream/init.rb
CHANGED
data/lib/pipedream/pipeline.rb
CHANGED
data/lib/pipedream/role.rb
CHANGED
data/lib/pipedream/schedule.rb
CHANGED
data/lib/pipedream/setting.rb
CHANGED
@@ -4,14 +4,14 @@ require 'render_me_pretty'
|
|
4
4
|
module Pipedream
|
5
5
|
class Setting
|
6
6
|
extend Memoist
|
7
|
-
def initialize(
|
8
|
-
@
|
7
|
+
def initialize(check_pipedream_project=true)
|
8
|
+
@check_pipedream_project = check_pipedream_project
|
9
9
|
end
|
10
10
|
|
11
11
|
# data contains the settings.yml config. The order or precedence for settings
|
12
12
|
# is the project ufo/settings.yml and then the ~/.pipedream/settings.yml.
|
13
13
|
def data
|
14
|
-
Pipedream.
|
14
|
+
Pipedream.check_pipedream_project! if @check_pipedream_project
|
15
15
|
return {} unless File.exist?(project_settings_path)
|
16
16
|
|
17
17
|
# project based settings files
|
data/lib/pipedream/sns.rb
CHANGED
data/lib/pipedream/start.rb
CHANGED
@@ -54,9 +54,9 @@ module Pipedream
|
|
54
54
|
resource = resp.stack_resources.find do |r|
|
55
55
|
r.logical_resource_id == "CodePipeline"
|
56
56
|
end
|
57
|
-
resource.physical_resource_id #
|
57
|
+
resource.physical_resource_id # pipeline name
|
58
58
|
else
|
59
|
-
puts "ERROR: Unable to find the
|
59
|
+
puts "ERROR: Unable to find the pipeline with either full_pipeline_name: #{@full_pipeline_name} or stack name: #{@stack_name}".color(:red)
|
60
60
|
exit 1
|
61
61
|
end
|
62
62
|
end
|
data/lib/pipedream/version.rb
CHANGED
data/lib/pipedream/webhook.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pipedream
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|