concourse-objects 1.32.1 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/lib/concourse-objects.rb +2 -1
  5. data/lib/concourse-objects/resources.rb +53 -0
  6. data/lib/concourse-objects/resources/alertmanager.rb +58 -0
  7. data/lib/concourse-objects/resources/android-sdk.rb +27 -0
  8. data/lib/concourse-objects/resources/ansible-playbook.rb +68 -0
  9. data/lib/concourse-objects/resources/artifactory-deb.rb +54 -0
  10. data/lib/concourse-objects/resources/artifactory.rb +33 -0
  11. data/lib/concourse-objects/resources/bender.rb +61 -0
  12. data/lib/concourse-objects/resources/bosh-io-release.rb +1 -0
  13. data/lib/concourse-objects/resources/bosh-io-stemcell.rb +1 -0
  14. data/lib/concourse-objects/resources/bosh-release.rb +64 -0
  15. data/lib/concourse-objects/resources/calendar.rb +36 -0
  16. data/lib/concourse-objects/resources/cf-event.rb +38 -0
  17. data/lib/concourse-objects/resources/cf-flyway.rb +45 -0
  18. data/lib/concourse-objects/resources/cf-zero-downtime.rb +64 -0
  19. data/lib/concourse-objects/resources/cf.rb +1 -0
  20. data/lib/concourse-objects/resources/chartmuseum.rb +56 -0
  21. data/lib/concourse-objects/resources/concourse-pipeline.rb +1 -0
  22. data/lib/concourse-objects/resources/deploygate.rb +38 -0
  23. data/lib/concourse-objects/resources/devpi.rb +44 -0
  24. data/lib/concourse-objects/resources/docker-compose.rb +131 -0
  25. data/lib/concourse-objects/resources/docker-image.rb +1 -0
  26. data/lib/concourse-objects/resources/email.rb +1 -0
  27. data/lib/concourse-objects/resources/fly.rb +46 -0
  28. data/lib/concourse-objects/resources/gcs.rb +61 -0
  29. data/lib/concourse-objects/resources/gerrit.rb +49 -0
  30. data/lib/concourse-objects/resources/git.rb +1 -0
  31. data/lib/concourse-objects/resources/github-list-repos.rb +1 -0
  32. data/lib/concourse-objects/resources/github-pr.rb +1 -0
  33. data/lib/concourse-objects/resources/github-release.rb +1 -0
  34. data/lib/concourse-objects/resources/github-status.rb +48 -0
  35. data/lib/concourse-objects/resources/github-webhook.rb +1 -0
  36. data/lib/concourse-objects/resources/grafana.rb +1 -0
  37. data/lib/concourse-objects/resources/hangouts.rb +35 -0
  38. data/lib/concourse-objects/resources/helm-chart.rb +1 -0
  39. data/lib/concourse-objects/resources/helm.rb +1 -0
  40. data/lib/concourse-objects/resources/hg.rb +1 -0
  41. data/lib/concourse-objects/resources/hipchat-notification.rb +1 -0
  42. data/lib/concourse-objects/resources/hockey.rb +32 -0
  43. data/lib/concourse-objects/resources/irc-notification.rb +1 -0
  44. data/lib/concourse-objects/resources/keyval.rb +1 -0
  45. data/lib/concourse-objects/resources/kubernetes-resource.rb +41 -0
  46. data/lib/concourse-objects/resources/kubernetes.rb +55 -0
  47. data/lib/concourse-objects/resources/marathon.rb +45 -0
  48. data/lib/concourse-objects/resources/maven.rb +43 -0
  49. data/lib/concourse-objects/resources/metadata.rb +1 -0
  50. data/lib/concourse-objects/resources/mock.rb +1 -0
  51. data/lib/concourse-objects/resources/newrelic-deploy.rb +31 -0
  52. data/lib/concourse-objects/resources/pool.rb +1 -0
  53. data/lib/concourse-objects/resources/registry-image.rb +1 -0
  54. data/lib/concourse-objects/resources/repo.rb +31 -0
  55. data/lib/concourse-objects/resources/rocketchat-notification.rb +43 -0
  56. data/lib/concourse-objects/resources/romver.rb +81 -0
  57. data/lib/concourse-objects/resources/rss.rb +1 -0
  58. data/lib/concourse-objects/resources/rubygems.rb +1 -0
  59. data/lib/concourse-objects/resources/s3.rb +1 -0
  60. data/lib/concourse-objects/resources/semver.rb +1 -0
  61. data/lib/concourse-objects/resources/serverspec.rb +30 -0
  62. data/lib/concourse-objects/resources/slack-notification.rb +1 -0
  63. data/lib/concourse-objects/resources/sonarqube.rb +70 -0
  64. data/lib/concourse-objects/resources/swift.rb +43 -0
  65. data/lib/concourse-objects/resources/telegram.rb +41 -0
  66. data/lib/concourse-objects/resources/time.rb +1 -0
  67. metadata +35 -2
  68. metadata.gz.sig +2 -3
@@ -6,6 +6,7 @@ module ConcourseObjects
6
6
  module Resources
7
7
  class DockerImage < Resource
8
8
  RESOURCE_NAME = "docker-image"
9
+ RESOURCE_LICENSE = "Apache-2.0"
9
10
  GITHUB_OWNER = "concourse"
10
11
  GITHUB_REPOSITORY = "concourse/docker-image-resource"
11
12
  GITHUB_VERSION = "v1.3.1"
@@ -6,6 +6,7 @@ module ConcourseObjects
6
6
  module Resources
7
7
  class Email < Resource
8
8
  RESOURCE_NAME = "email"
9
+ RESOURCE_LICENSE = "MIT"
9
10
  GITHUB_OWNER = "pivotal-cf"
10
11
  GITHUB_REPOSITORY = "pivotal-cf/email-resource"
11
12
  GITHUB_VERSION = "v1.0.17"
@@ -0,0 +1,46 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../../concourse-objects"
4
+
5
+ module ConcourseObjects
6
+ module Resources
7
+ class Fly < Resource
8
+ RESOURCE_NAME = "fly"
9
+ RESOURCE_LICENSE = "MIT"
10
+ GITHUB_OWNER = "troykinsella"
11
+ GITHUB_REPOSITORY = "troykinsella/concourse-fly-resource"
12
+ GITHUB_VERSION = "v1.0.0"
13
+
14
+ class Source < Object
15
+ DEFAULT_DEBUG = false
16
+ DEFAULT_INSECURE = false
17
+ DEFAULT_MULTILINE_LINES = false
18
+ DEFAULT_SECURE_OUTPUT = false
19
+ DEFAULT_TARGET = "main"
20
+ DEFAULT_TEAM = "main"
21
+
22
+ required :url, write: AsString
23
+ required :username, write: AsString
24
+ required :password, write: AsString
25
+
26
+ optional :target, write: AsString, default: proc { DEFAULT_TARGET }
27
+ optional :team, write: AsString, default: proc { DEFAULT_TEAM }
28
+ optional :debug, write: AsBoolean, default: proc { DEFAULT_DEBUG }
29
+ optional :insecure, write: AsBoolean, default: proc { DEFAULT_INSECURE }
30
+ optional :multiline_lines, write: AsBoolean, default: proc { DEFAULT_MULTILINE_LINES }
31
+ optional :secure_output, write: AsBoolean, default: proc { DEFAULT_SECURE_OUTPUT }
32
+ end
33
+
34
+ class OutParams < Object
35
+ optional :options, write: AsString
36
+ optional :options_file, write: AsString
37
+ end
38
+
39
+ optional :source, write: Source
40
+
41
+ def initialize(options = {})
42
+ super(options.merge(type: "fly"))
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,61 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../../concourse-objects"
4
+
5
+ module ConcourseObjects
6
+ module Resources
7
+ class GCS < Resource
8
+ RESOURCE_NAME = "gcs"
9
+ RESOURCE_LICENSE = "Apache-2.0"
10
+ GITHUB_OWNER = "frodenas"
11
+ GITHUB_REPOSITORY = "frodenas/gcs-resource"
12
+ GITHUB_VERSION = "v0.5.1"
13
+
14
+ class Source < Object
15
+ required :bucket, write: AsString
16
+ required :json_key, write: AsString
17
+
18
+ optional :regexp, write: AsString
19
+ optional :versioned_file, write: AsString
20
+ optional :initial_path, write: AsString, guard: proc { |source| source.regexp? }
21
+ optional :initial_version, write: AsString, guard: proc { |source| source.versioned_file? }
22
+ optional :initial_text, write: AsString
23
+ optional :initial_content_binary, write: AsString
24
+
25
+ def initialize(options = {})
26
+ super(options)
27
+ super(options) do |this, options|
28
+ raise KeyError, "#{this.class.inspect} requires one of (regexp, versioned_file)" unless (this.regegxp? or this.versioned_file?)
29
+
30
+ yield this, options if block_given?
31
+ end
32
+ end
33
+ end
34
+
35
+ class InParams < Object
36
+ DEFAULT_SKIP_DOWNLOAD = false
37
+ DEFAULT_UNPACK = false
38
+
39
+ optional :skip_download, write: AsBoolean, default: proc { DEFAULT_SKIP_DOWNLOAD }
40
+ optional :unpack, write: AsBoolean, default: proc { DEFAULT_UNPACK }
41
+ end
42
+
43
+ class OutParams < Object
44
+ ACCEPTABLE_PREDEFINED_ACLS = ["authenticatedRead", "bucketOwnerFullControl", "bucketOwnerRead", "private", "projectPrivate", "publicRead", "publicReadWrite"]
45
+ PredefinedACLIsAcceptable = proc { |_, predefined_acl| ACCEPTABLE_PREDEFINED_ACLS.include?(predefined_acl) }
46
+
47
+ required :file, write: AsString
48
+
49
+ optional :predefined_acl, write: AsString, guard: PredefinedACLIsAcceptable
50
+ optional :content_type, write: AsString
51
+ optional :cache_control, write: AsString
52
+ end
53
+
54
+ optional :source, write: Source
55
+
56
+ def initialize(options = {})
57
+ super(options.merge(type: "gcs"))
58
+ end
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../../concourse-objects"
4
+
5
+ module ConcourseObjects
6
+ module Resources
7
+ class Gerrit < Resource
8
+ RESOURCE_NAME = "gerrit"
9
+ RESOURCE_LICENSE = "Apache-2.0"
10
+ GITHUB_OWNER = "google"
11
+ GITHUB_REPOSITORY = "google/concourse-resources"
12
+ GITHUB_VERSION = "0.2.2"
13
+
14
+ class Source < Object
15
+ DEFAULT_DIGEST_AUTH = false
16
+ DEFAULT_QUERY = "status:open"
17
+
18
+ required :uri, write: AsString
19
+
20
+ optional :digest_auth, write: AsBoolean, default: proc { DEFAULT_DIGEST_AUTH }
21
+ optional :query, write: AsString, default: proc { DEFAULT_QUERY }
22
+ optional :cookies, write: AsString
23
+ optional :password, write: AsString
24
+ optional :username, write: AsString
25
+ end
26
+
27
+ class InParams < Object
28
+ DEFAULT_FETCH_PROTOCOL = "http"
29
+
30
+ optional :fetch_protocol, write: AsString, default: proc { DEFAULT_FETCH_PROTOCOL }
31
+ optional :fetch_url, write: AsString
32
+ end
33
+
34
+ class OutParams < Object
35
+ required :repository, write: AsString
36
+
37
+ optional :message, write: AsString
38
+ optional :message_file, write: AsString
39
+ optional :labels, write: AsHash, default: EmptyHash
40
+ end
41
+
42
+ optional :source, write: Source
43
+
44
+ def initialize(options = {})
45
+ super(options.merge(type: "gerrit"))
46
+ end
47
+ end
48
+ end
49
+ end
@@ -6,6 +6,7 @@ module ConcourseObjects
6
6
  module Resources
7
7
  class Git < Resource
8
8
  RESOURCE_NAME = "git"
9
+ RESOURCE_LICENSE = "Apache-2.0"
9
10
  GITHUB_OWNER = "concourse"
10
11
  GITHUB_REPOSITORY = "concourse/git-resource"
11
12
  GITHUB_VERSION = "v1.5.0"
@@ -6,6 +6,7 @@ module ConcourseObjects
6
6
  module Resources
7
7
  class GitHubListRepos < Resource
8
8
  RESOURCE_NAME = "github-list-repos"
9
+ RESOURCE_LICENSE = "Apache-2.0"
9
10
  GITHUB_OWNER = "coralogix"
10
11
  GITHUB_REPOSITORY = "coralogix/eng-concourse-github-list-repos-resource"
11
12
  GITHUB_VERSION = "v0.3.1"
@@ -6,6 +6,7 @@ module ConcourseObjects
6
6
  module Resources
7
7
  class GitHubPR < Resource
8
8
  RESOURCE_NAME = "github-pr"
9
+ RESOURCE_LICENSE = "MIT"
9
10
  GITHUB_OWNER = "telia-oss"
10
11
  GITHUB_REPOSITORY = "telia-oss/github-pr-resource"
11
12
  GITHUB_VERSION = "v0.18.0"
@@ -6,6 +6,7 @@ module ConcourseObjects
6
6
  module Resources
7
7
  class GitHubRelease < Resource
8
8
  RESOURCE_NAME = "github-release"
9
+ RESOURCE_LICENSE = "Apache-2.0"
9
10
  GITHUB_OWNER = "concourse"
10
11
  GITHUB_REPOSITORY = "concourse/github-release-resource"
11
12
  GITHUB_VERSION = "v1.1.1"
@@ -0,0 +1,48 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../../concourse-objects"
4
+
5
+ module ConcourseObjects
6
+ module Resources
7
+ class GitHubStatus < Resource
8
+ RESOURCE_NAME = "github-status"
9
+ RESOURCE_LICENSE = "MIT"
10
+ GITHUB_OWNER = "dpb587"
11
+ GITHUB_REPOSITORY = "dpb587/github-status-resource"
12
+ GITHUB_VERSION = "v2.1.0"
13
+
14
+ class Source < Object
15
+ DEFAULT_BRANCH = "master"
16
+ DEFAULT_CONTEXT = "default"
17
+ DEFAULT_ENDPOINT = "https://api.github.com"
18
+ DEFAULT_SKIP_SSL_VERIFICATION = false
19
+
20
+ required :repository, write: AsString
21
+ required :access_token, write: AsString
22
+
23
+ optional :branch, write: AsString, default: proc { DEFAULT_BRANCH }
24
+ optional :context, write: AsString, default: proc { DEFAULT_CONTEXT }
25
+ optional :endpoint, write: AsString, default: proc { DEFAULT_ENDPOINT }
26
+ optional :skip_ssl_verification, write: AsBoolean, default: proc { DEFAULT_SKIP_SSL_VERIFICATION }
27
+ end
28
+
29
+ class OutParams < Object
30
+ ACCEPTABLE_STATES = ["pending", "success", "error", "failure"]
31
+ StateIsAcceptable = proc { |_, state| ACCEPTABLE_STATES.include?(state) }
32
+
33
+ required :commit, write: AsString
34
+ required :state, write: AsString, guard: StateIsAcceptable
35
+
36
+ optional :description, write: AsString
37
+ optional :description_path, write: AsString
38
+ optional :target_url, write: AsString
39
+ end
40
+
41
+ optional :source, write: Source
42
+
43
+ def initialize(options = {})
44
+ super(options.merge(type: "github-status"))
45
+ end
46
+ end
47
+ end
48
+ end
@@ -6,6 +6,7 @@ module ConcourseObjects
6
6
  module Resources
7
7
  class GitHubWebhook < Resource
8
8
  RESOURCE_NAME = "github-webhook"
9
+ RESOURCE_LICENSE = "Apache-2.0"
9
10
  GITHUB_OWNER = "homedepot"
10
11
  GITHUB_REPOSITORY = "homedepot/github-webhook-resource"
11
12
  GITHUB_VERSION = "v1.1.1"
@@ -6,6 +6,7 @@ module ConcourseObjects
6
6
  module Resources
7
7
  class Grafana < Resource
8
8
  RESOURCE_NAME = "grafana"
9
+ RESOURCE_LICENSE = nil
9
10
  GITHUB_OWNER = "telia-oss"
10
11
  GITHUB_REPOSITORY = "telia-oss/grafana-resource"
11
12
  GITHUB_VERSION = "v0.0.2"
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../../concourse-objects"
4
+
5
+ module ConcourseObjects
6
+ module Resources
7
+ class Hangouts < Resource
8
+ RESOURCE_NAME = "hangouts"
9
+ RESOURCE_LICENSE = "BSD-2-Clause"
10
+ GITHUB_OWNER = "CloudInn"
11
+ GITHUB_REPOSITORY = "CloudInn/concourse-hangouts-resource"
12
+ GITHUB_VERSION = "v0.3.2-rc.7"
13
+
14
+ class Source < Object
15
+ DEFAULT_POST_URL = true
16
+
17
+ required :webhook_url, write: AsString
18
+
19
+ optional :post_url, write: AsBoolean, default: proc { DEFAULT_POST_URL }
20
+ end
21
+
22
+ class OutParams < Object
23
+ optional :message, write: AsString
24
+ optional :message_file, write: AsString
25
+ optional :post_url, write: AsBoolean
26
+ end
27
+
28
+ optional :source, write: Source
29
+
30
+ def initialize(options = {})
31
+ super(options.merge(type: "hangouts"))
32
+ end
33
+ end
34
+ end
35
+ end
@@ -6,6 +6,7 @@ module ConcourseObjects
6
6
  module Resources
7
7
  class HelmChart < Resource
8
8
  RESOURCE_NAME = "helm-chart"
9
+ RESOURCE_LICENSE = "Apache-2.0"
9
10
  GITHUB_OWNER = "linkyard"
10
11
  GITHUB_REPOSITORY = "linkyard/helm-chart-resource"
11
12
  GITHUB_VERSION = "v0.1.0"
@@ -6,6 +6,7 @@ module ConcourseObjects
6
6
  module Resources
7
7
  class Helm < Resource
8
8
  RESOURCE_NAME = "helm"
9
+ RESOURCE_LICENSE = "Apache-2.0"
9
10
  GITHUB_OWNER = "linkyard"
10
11
  GITHUB_REPOSITORY = "linkyard/concourse-helm-resource"
11
12
  GITHUB_VERSION = "2.14.1-1"
@@ -6,6 +6,7 @@ module ConcourseObjects
6
6
  module Resources
7
7
  class Hg < Resource
8
8
  RESOURCE_NAME = "hg"
9
+ RESOURCE_LICENSE = "Apache-2.0"
9
10
  GITHUB_OWNER = "concourse"
10
11
  GITHUB_REPOSITORY = "concourse/hg-resource"
11
12
  GITHUB_VERSION = "v1.0.2"
@@ -6,6 +6,7 @@ module ConcourseObjects
6
6
  module Resources
7
7
  class HipChatNotification < Resource
8
8
  RESOURCE_NAME = "hipchat-notification"
9
+ RESOURCE_LICENSE = "Apache-2.0"
9
10
  GITHUB_OWNER = "cloudfoundry-community"
10
11
  GITHUB_REPOSITORY = "cloudfoundry-community/hipchat-notification-resource"
11
12
  GITHUB_VERSION = "v0.0.4"
@@ -0,0 +1,32 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../../concourse-objects"
4
+
5
+ module ConcourseObjects
6
+ module Resources
7
+ class Hockey < Resource
8
+ RESOURCE_NAME = "hockey"
9
+ RESOURCE_LICENSE = "MIT"
10
+ GITHUB_OWNER = "seadowg"
11
+ GITHUB_REPOSITORY = "seadowg/hockey-resource"
12
+ GITHUB_VERSION = "0.1.0"
13
+
14
+ class Source < Object
15
+ required :app_id, write: AsString
16
+ required :token, write: AsString
17
+ end
18
+
19
+ class OutParams < Object
20
+ required :path, write: AsString
21
+
22
+ optional :downloadable, write: AsBoolean
23
+ end
24
+
25
+ optional :source, write: Source
26
+
27
+ def initialize(options = {})
28
+ super(options.merge(type: "hockey"))
29
+ end
30
+ end
31
+ end
32
+ end
@@ -6,6 +6,7 @@ module ConcourseObjects
6
6
  module Resources
7
7
  class IRCNotification < Resource
8
8
  RESOURCE_NAME = "irc-notification"
9
+ RESOURCE_LICENSE = "MIT"
9
10
  GITHUB_OWNER = "flavorjones"
10
11
  GITHUB_REPOSITORY = "flavorjones/irc-notification-resource"
11
12
  GITHUB_VERSION = "v1.2.0"
@@ -6,6 +6,7 @@ module ConcourseObjects
6
6
  module Resources
7
7
  class KeyVal < Resource
8
8
  RESOURCE_NAME = "keyval"
9
+ RESOURCE_LICENSE = "Apache-2.0"
9
10
  GITHUB_OWNER = "SWCE"
10
11
  GITHUB_REPOSITORY = "SWCE/keyval-resource"
11
12
  GITHUB_VERSION = "1.0.6"
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../../concourse-objects"
4
+
5
+ module ConcourseObjects
6
+ module Resources
7
+ class KubernetesResource < Resource
8
+ RESOURCE_NAME = "kubernetes"
9
+ RESOURCE_LICENSE = nil
10
+ GITHUB_OWNER = "jcderr"
11
+ GITHUB_REPOSITORY = "jcderr/concourse-kubernetes-resource"
12
+ GITHUB_VERSION = "v1.1.1"
13
+
14
+ class Source < Object
15
+ ACCEPTABLE_RESOURCE_TYPES = ["deployment", "replicationController", "job"]
16
+ ResourceTypeIsAcceptable = proc { |_, resource_type| ACCEPTABLE_RESOURCE_TYPES.include?(resource_type) }
17
+
18
+ required :cluster_url, write: AsString
19
+ required :namespace, write: AsString
20
+ required :resource_name, write: AsString
21
+ required :resource_type, write: AsString, guard: ResourceTypeIsAcceptable
22
+
23
+ optional :container_name, write: AsString, default: proc { |source| source.resource_name }
24
+ optional :cluster_ca, write: AsString
25
+ optional :admin_key, write: AsString
26
+ optional :admin_cert, write: AsString
27
+ end
28
+
29
+ class OutParams < Object
30
+ required :image_name, write: AsString
31
+ required :image_tag, write: AsString
32
+ end
33
+
34
+ optional :source, write: Source
35
+
36
+ def initialize(options = {})
37
+ super(options.merge(type: "kubernetes"))
38
+ end
39
+ end
40
+ end
41
+ end