pipedream 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 67572d8d7485c6c1f0889483c4383469ca42e20e562b7649eb562dcfad18aae0
4
- data.tar.gz: 943630d8688bdf6e8279dea4365a16ff63e087825baad4fd3ca7fa6948f0923e
3
+ metadata.gz: 3a955b6a15876413b9ae3788a8b99fdfe1d34e615fb530dc4c6d5d200bd9eeed
4
+ data.tar.gz: 0503d2c439697f7546afb678c293df90b53a36b6478d27170e9bcbbb2d898254
5
5
  SHA512:
6
- metadata.gz: 38073cc81fe609bcdee9375fc84b84f77ddbc894fb543dbb88717db1d898658b017c7aa4e58f8ad1d95a3989d7ef3b09520343bf55af73f7f12ca9478f540719
7
- data.tar.gz: d51302177798556778c8faef0823c2b7fba51016ed77d62153b8c07424ed9098d2ac8a4d0f4bdf6f4ca80ef234936d3468e1a12a8bf3e76968caf306b061b1a3
6
+ metadata.gz: eb726218c6865adeaced56d28b53a62b0bf2dc126af83e017a175cf0daf05ef9e0bc2567fb0e3289a1349faa81df45a324f7c581fc8442041da72a486b865702
7
+ data.tar.gz: ec3e61313f3e1754a70e3b7c67eee5f172f6c9f26b8aaea01e137b6927a83a72d64ee8a7a75af3d4e94f828c2daf858c26fd5a4f69deb36c34ab1ffce39ad587
@@ -3,6 +3,9 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
5
5
 
6
+ ## [0.4.3]
7
+ - fix pipedream renaming
8
+
6
9
  ## [0.4.2]
7
10
  - fix project_name
8
11
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pipedream (0.4.1)
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.2)
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 [schedule.rb docs](https://pipedream.run/docs/dsl/schedule/)
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
 
@@ -45,12 +45,12 @@ module Pipedream
45
45
  end
46
46
  memoize :settings
47
47
 
48
- def check_codepipeline_project!
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 codepipeline setup?".color(:red)
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 codepipeline for this prjoect, please create a settings file via: codepipeline init"
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, the user needs to set: name and configuration.project_name
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 }
@@ -40,7 +40,7 @@ module Pipedream
40
40
  end
41
41
  end
42
42
 
43
- def lookup_codepipeline_file(name)
43
+ def lookup_pipedream_file(name)
44
44
  [".pipedream", @options[:type], name].compact.join("/")
45
45
  end
46
46
  end
@@ -32,7 +32,7 @@ module Pipedream
32
32
  end
33
33
 
34
34
  def copy_project
35
- puts "Initialize codepipeline project in .pipedream"
35
+ puts "Initialize pipedream project in .pipedream"
36
36
 
37
37
  excludes = %w[.git]
38
38
  if @options[:mode] == "light"
@@ -55,7 +55,7 @@ module Pipedream
55
55
 
56
56
  private
57
57
  def get_pipeline_path
58
- lookup_codepipeline_file "pipeline.rb"
58
+ lookup_pipedream_file "pipeline.rb"
59
59
  end
60
60
  end
61
61
  end
@@ -38,7 +38,7 @@ module Pipedream
38
38
 
39
39
  private
40
40
  def get_role_path
41
- lookup_codepipeline_file("role.rb")
41
+ lookup_pipedream_file("role.rb")
42
42
  end
43
43
 
44
44
  def default_properties
@@ -61,7 +61,7 @@ module Pipedream
61
61
 
62
62
  private
63
63
  def get_schedule_path
64
- lookup_codepipeline_file("schedule.rb")
64
+ lookup_pipedream_file("schedule.rb")
65
65
  end
66
66
 
67
67
  def events_rule_role
@@ -4,14 +4,14 @@ require 'render_me_pretty'
4
4
  module Pipedream
5
5
  class Setting
6
6
  extend Memoist
7
- def initialize(check_codepipeline_project=true)
8
- @check_codepipeline_project = check_codepipeline_project
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.check_codepipeline_project! if @check_codepipeline_project
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
@@ -37,7 +37,7 @@ module Pipedream
37
37
 
38
38
  private
39
39
  def get_sns_path
40
- lookup_codepipeline_file("sns.rb")
40
+ lookup_pipedream_file("sns.rb")
41
41
  end
42
42
  end
43
43
  end
@@ -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 # codepipeline project name
57
+ resource.physical_resource_id # pipeline name
58
58
  else
59
- puts "ERROR: Unable to find the codepipeline project with either full_pipeline_name: #{@full_pipeline_name} or stack name: #{@stack_name}".color(:red)
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
@@ -1,3 +1,3 @@
1
1
  module Pipedream
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
@@ -54,7 +54,7 @@ module Pipedream
54
54
  private
55
55
 
56
56
  def get_webhook_path
57
- lookup_codepipeline_file("webhook.rb")
57
+ lookup_pipedream_file("webhook.rb")
58
58
  end
59
59
  end
60
60
  end
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.2
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-02 00:00:00.000000000 Z
11
+ date: 2019-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport