dpl 2.0.0.alpha.14 → 2.0.0.beta.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +4 -0
  3. data/Gemfile.lock +37 -37
  4. data/NOTES.md +0 -119
  5. data/README.md +56 -5
  6. data/dpl-chef_supermarket-1.10.14.gem +0 -0
  7. data/lib/dpl/helper/interpolate.rb +24 -1
  8. data/lib/dpl/provider.rb +10 -0
  9. data/lib/dpl/provider/dsl.rb +25 -0
  10. data/lib/dpl/providers.rb +1 -0
  11. data/lib/dpl/providers/anynines.rb +2 -0
  12. data/lib/dpl/providers/azure_web_apps.rb +2 -0
  13. data/lib/dpl/providers/bintray.rb +2 -0
  14. data/lib/dpl/providers/bluemixcloudfoundry.rb +3 -1
  15. data/lib/dpl/providers/boxfuse.rb +2 -0
  16. data/lib/dpl/providers/cargo.rb +3 -1
  17. data/lib/dpl/providers/cloud66.rb +2 -0
  18. data/lib/dpl/providers/cloudfiles.rb +2 -0
  19. data/lib/dpl/providers/cloudformation.rb +1 -0
  20. data/lib/dpl/providers/cloudfoundry.rb +2 -0
  21. data/lib/dpl/providers/codedeploy.rb +7 -3
  22. data/lib/dpl/providers/convox.rb +2 -0
  23. data/lib/dpl/providers/datica.rb +2 -0
  24. data/lib/dpl/providers/elasticbeanstalk.rb +2 -0
  25. data/lib/dpl/providers/engineyard.rb +2 -0
  26. data/lib/dpl/providers/firebase.rb +2 -0
  27. data/lib/dpl/providers/flynn.rb +33 -0
  28. data/lib/dpl/providers/gae.rb +2 -0
  29. data/lib/dpl/providers/gcs.rb +2 -0
  30. data/lib/dpl/providers/gleis.rb +2 -0
  31. data/lib/dpl/providers/hackage.rb +2 -0
  32. data/lib/dpl/providers/hephy.rb +2 -0
  33. data/lib/dpl/providers/heroku.rb +2 -0
  34. data/lib/dpl/providers/heroku/api.rb +1 -1
  35. data/lib/dpl/providers/heroku/git.rb +1 -1
  36. data/lib/dpl/providers/lambda.rb +4 -2
  37. data/lib/dpl/providers/launchpad.rb +2 -0
  38. data/lib/dpl/providers/netlify.rb +2 -0
  39. data/lib/dpl/providers/npm.rb +2 -0
  40. data/lib/dpl/providers/openshift.rb +2 -0
  41. data/lib/dpl/providers/opsworks.rb +2 -0
  42. data/lib/dpl/providers/packagecloud.rb +2 -0
  43. data/lib/dpl/providers/pages.rb +2 -0
  44. data/lib/dpl/providers/pages/api.rb +1 -1
  45. data/lib/dpl/providers/pages/git.rb +5 -5
  46. data/lib/dpl/providers/puppetforge.rb +2 -0
  47. data/lib/dpl/providers/pypi.rb +2 -0
  48. data/lib/dpl/providers/releases.rb +2 -0
  49. data/lib/dpl/providers/rubygems.rb +2 -0
  50. data/lib/dpl/providers/s3.rb +2 -0
  51. data/lib/dpl/providers/scalingo.rb +2 -0
  52. data/lib/dpl/providers/script.rb +2 -0
  53. data/lib/dpl/providers/snap.rb +3 -1
  54. data/lib/dpl/providers/surge.rb +2 -0
  55. data/lib/dpl/providers/testfairy.rb +2 -0
  56. data/lib/dpl/providers/transifex.rb +2 -0
  57. data/lib/dpl/version.rb +1 -1
  58. data/status.json +13 -8
  59. metadata +5 -4
@@ -1,6 +1,8 @@
1
1
  module Dpl
2
2
  module Providers
3
3
  class Launchpad < Provider
4
+ register :launchpad
5
+
4
6
  status :alpha
5
7
 
6
8
  description sq(<<-str)
@@ -1,6 +1,8 @@
1
1
  module Dpl
2
2
  module Providers
3
3
  class Netlify < Provider
4
+ register :netlify
5
+
4
6
  status :stable
5
7
 
6
8
  description sq(<<-str)
@@ -1,6 +1,8 @@
1
1
  module Dpl
2
2
  module Providers
3
3
  class Npm < Provider
4
+ register :npm
5
+
4
6
  status :stable
5
7
 
6
8
  full_name 'npm'
@@ -1,6 +1,8 @@
1
1
  module Dpl
2
2
  module Providers
3
3
  class Openshift < Provider
4
+ register :openshift
5
+
4
6
  status :stable
5
7
 
6
8
  full_name 'OpenShift'
@@ -1,6 +1,8 @@
1
1
  module Dpl
2
2
  module Providers
3
3
  class Opsworks < Provider
4
+ register :opsworks
5
+
4
6
  status :stable
5
7
 
6
8
  full_name 'AWS OpsWorks'
@@ -5,6 +5,8 @@
5
5
  module Dpl
6
6
  module Providers
7
7
  class Packagecloud < Provider
8
+ register :packagecloud
9
+
8
10
  status :alpha
9
11
 
10
12
  description sq(<<-str)
@@ -1,6 +1,8 @@
1
1
  module Dpl
2
2
  module Providers
3
3
  class Pages < Provider
4
+ register :pages
5
+
4
6
  abstract
5
7
 
6
8
  env :github, :pages
@@ -4,7 +4,7 @@ module Dpl
4
4
  module Providers
5
5
  class Pages
6
6
  class Api < Pages
7
- register 'pages:api'
7
+ register :'pages:api'
8
8
 
9
9
  status :dev
10
10
 
@@ -2,7 +2,7 @@ module Dpl
2
2
  module Providers
3
3
  class Pages
4
4
  class Git < Pages
5
- register 'pages:git'
5
+ register :'pages:git'
6
6
 
7
7
  status :stable
8
8
 
@@ -18,11 +18,11 @@ module Dpl
18
18
  required :token, :deploy_key
19
19
 
20
20
  opt '--repo SLUG', 'Repo slug', default: :repo_slug
21
- opt '--token TOKEN', 'GitHub oauth token with repo permission', secret: true, alias: :github_token
21
+ opt '--token TOKEN', 'GitHub token with repo permission', secret: true, alias: :github_token
22
22
  opt '--deploy_key PATH', 'Path to a file containing a private deploy key with write access to the repository', see: 'https://developer.github.com/v3/guides/managing-deploy-keys/#deploy-keys'
23
23
  opt '--target_branch BRANCH', 'Branch to push force to', default: 'gh-pages'
24
24
  opt '--keep_history', 'Create incremental commit instead of doing push force', default: true
25
- opt '--commit_message MSG', default: 'Deploy %{project_name} to %{url}:%{target_branch}'
25
+ opt '--commit_message MSG', default: 'Deploy %{project_name} to %{url}:%{target_branch}', interpolate: true
26
26
  opt '--allow_empty_commit', 'Allow an empty commit to be created', requires: :keep_history
27
27
  opt '--verbose', 'Be verbose about the deploy process'
28
28
  opt '--local_dir DIR', 'Directory to push to GitHub Pages', default: '.'
@@ -30,7 +30,7 @@ module Dpl
30
30
  opt '--project_name NAME', 'Used in the commit message only (defaults to fqdn or the current repo slug)'
31
31
  opt '--name NAME', 'Committer name', note: 'defaults to the current git commit author name'
32
32
  opt '--email EMAIL', 'Committer email', note: 'defaults to the current git commit author email'
33
- opt '--committer_from_gh', 'Use the token\'s owner name and email for the commit', requires: :github_token
33
+ opt '--committer_from_gh', 'Use the token\'s owner name and email for the commit', requires: :token
34
34
  opt '--deployment_file', 'Enable creation of a deployment-info file'
35
35
  opt '--url URL', default: 'github.com', alias: :github_url
36
36
 
@@ -171,7 +171,7 @@ module Dpl
171
171
  end
172
172
 
173
173
  def git_commit_msg_opts
174
- msg = interpolate(commit_message)
174
+ msg = interpolate(commit_message, vars: vars)
175
175
  msg.split("\n").reject(&:empty?).map { |msg| %(-m #{quote(msg)}) }
176
176
  end
177
177
 
@@ -1,6 +1,8 @@
1
1
  module Dpl
2
2
  module Providers
3
3
  class Puppetforge < Provider
4
+ register :puppetforge
5
+
4
6
  status :alpha
5
7
 
6
8
  full_name 'Puppet Forge'
@@ -1,6 +1,8 @@
1
1
  module Dpl
2
2
  module Providers
3
3
  class Pypi < Provider
4
+ register :pypi
5
+
4
6
  status :stable
5
7
 
6
8
  full_name 'PyPI'
@@ -5,6 +5,8 @@ module Dpl
5
5
  class Releases < Provider
6
6
  include Github
7
7
 
8
+ register :releases
9
+
8
10
  status :stable
9
11
 
10
12
  full_name 'GitHub Releases'
@@ -1,6 +1,8 @@
1
1
  module Dpl
2
2
  module Providers
3
3
  class Rubygems < Provider
4
+ register :rubygems
5
+
4
6
  status :stable
5
7
 
6
8
  description sq(<<-str)
@@ -6,6 +6,8 @@ Thread.abort_on_exception = true
6
6
  module Dpl
7
7
  module Providers
8
8
  class S3 < Provider
9
+ register :s3
10
+
9
11
  status :stable
10
12
 
11
13
  full_name 'AWS S3'
@@ -1,6 +1,8 @@
1
1
  module Dpl
2
2
  module Providers
3
3
  class Scalingo < Provider
4
+ register :scalingo
5
+
4
6
  status :alpha
5
7
 
6
8
  description sq(<<-str)
@@ -1,6 +1,8 @@
1
1
  module Dpl
2
2
  module Providers
3
3
  class Script < Provider
4
+ register :script
5
+
4
6
  status :stable
5
7
 
6
8
  summary 'Minimal provider that executes a custom command'
@@ -1,7 +1,9 @@
1
1
  module Dpl
2
2
  module Providers
3
3
  class Snap < Provider
4
- status :dev
4
+ register :snap
5
+
6
+ status :beta
5
7
 
6
8
  description sq(<<-str)
7
9
  tbd
@@ -3,6 +3,8 @@ require 'open-uri'
3
3
  module Dpl
4
4
  module Providers
5
5
  class Surge < Provider
6
+ register :surge
7
+
6
8
  status :stable
7
9
 
8
10
  description sq(<<-str)
@@ -5,6 +5,8 @@ require 'securerandom'
5
5
  module Dpl
6
6
  module Providers
7
7
  class Testfairy < Provider
8
+ register :testfairy
9
+
8
10
  status :alpha
9
11
 
10
12
  full_name 'TestFairy'
@@ -1,6 +1,8 @@
1
1
  module Dpl
2
2
  module Providers
3
3
  class Transifex < Provider
4
+ register :transifex
5
+
4
6
  status :alpha
5
7
 
6
8
  description sq(<<-str)
@@ -1,3 +1,3 @@
1
1
  module Dpl
2
- VERSION = '2.0.0.alpha.14'
2
+ VERSION = '2.0.0.beta.2'
3
3
  end
@@ -16,8 +16,8 @@
16
16
  },
17
17
  {
18
18
  "name": "bluemixcloudfoundry",
19
- "status": "alpha",
20
- "date": "2019-08-05"
19
+ "status": "beta",
20
+ "date": "2020-01-23"
21
21
  },
22
22
  {
23
23
  "name": "boxfuse",
@@ -26,8 +26,8 @@
26
26
  },
27
27
  {
28
28
  "name": "cargo",
29
- "status": "beta",
30
- "date": "2019-10-01"
29
+ "status": "stable",
30
+ "date": "2020-01-27"
31
31
  },
32
32
  {
33
33
  "name": "chef_supermarket",
@@ -56,8 +56,8 @@
56
56
  },
57
57
  {
58
58
  "name": "codedeploy",
59
- "status": "alpha",
60
- "date": "2019-08-05"
59
+ "status": "beta",
60
+ "date": "2020-01-20"
61
61
  },
62
62
  {
63
63
  "name": "convox",
@@ -84,6 +84,11 @@
84
84
  "status": "stable",
85
85
  "date": "2019-10-28"
86
86
  },
87
+ {
88
+ "name": "flynn",
89
+ "status": "dev",
90
+ "date": "2020-01-22"
91
+ },
87
92
  {
88
93
  "name": "gae",
89
94
  "status": "stable",
@@ -201,8 +206,8 @@
201
206
  },
202
207
  {
203
208
  "name": "snap",
204
- "status": "dev",
205
- "date": "2019-08-05"
209
+ "status": "beta",
210
+ "date": "2020-01-20"
206
211
  },
207
212
  {
208
213
  "name": "surge",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dpl
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.alpha.14
4
+ version: 2.0.0.beta.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2020-01-17 00:00:00.000000000 Z
13
+ date: 2020-02-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: cl
@@ -62,6 +62,7 @@ files:
62
62
  - Rakefile
63
63
  - bin/dpl
64
64
  - config/transliterate.yml
65
+ - dpl-chef_supermarket-1.10.14.gem
65
66
  - dpl.gemspec
66
67
  - lib/dpl.rb
67
68
  - lib/dpl/assets/atlas/install
@@ -109,6 +110,7 @@ files:
109
110
  - lib/dpl/providers/elasticbeanstalk.rb
110
111
  - lib/dpl/providers/engineyard.rb
111
112
  - lib/dpl/providers/firebase.rb
113
+ - lib/dpl/providers/flynn.rb
112
114
  - lib/dpl/providers/gae.rb
113
115
  - lib/dpl/providers/gcs.rb
114
116
  - lib/dpl/providers/gleis.rb
@@ -163,8 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
165
  - !ruby/object:Gem::Version
164
166
  version: 1.3.1
165
167
  requirements: []
166
- rubyforge_project:
167
- rubygems_version: 2.6.11
168
+ rubygems_version: 3.0.3
168
169
  signing_key:
169
170
  specification_version: 4
170
171
  summary: Dpl runs deployments at Travis CI