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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/concourse-objects.rb +2 -1
- data/lib/concourse-objects/resources.rb +53 -0
- data/lib/concourse-objects/resources/alertmanager.rb +58 -0
- data/lib/concourse-objects/resources/android-sdk.rb +27 -0
- data/lib/concourse-objects/resources/ansible-playbook.rb +68 -0
- data/lib/concourse-objects/resources/artifactory-deb.rb +54 -0
- data/lib/concourse-objects/resources/artifactory.rb +33 -0
- data/lib/concourse-objects/resources/bender.rb +61 -0
- data/lib/concourse-objects/resources/bosh-io-release.rb +1 -0
- data/lib/concourse-objects/resources/bosh-io-stemcell.rb +1 -0
- data/lib/concourse-objects/resources/bosh-release.rb +64 -0
- data/lib/concourse-objects/resources/calendar.rb +36 -0
- data/lib/concourse-objects/resources/cf-event.rb +38 -0
- data/lib/concourse-objects/resources/cf-flyway.rb +45 -0
- data/lib/concourse-objects/resources/cf-zero-downtime.rb +64 -0
- data/lib/concourse-objects/resources/cf.rb +1 -0
- data/lib/concourse-objects/resources/chartmuseum.rb +56 -0
- data/lib/concourse-objects/resources/concourse-pipeline.rb +1 -0
- data/lib/concourse-objects/resources/deploygate.rb +38 -0
- data/lib/concourse-objects/resources/devpi.rb +44 -0
- data/lib/concourse-objects/resources/docker-compose.rb +131 -0
- data/lib/concourse-objects/resources/docker-image.rb +1 -0
- data/lib/concourse-objects/resources/email.rb +1 -0
- data/lib/concourse-objects/resources/fly.rb +46 -0
- data/lib/concourse-objects/resources/gcs.rb +61 -0
- data/lib/concourse-objects/resources/gerrit.rb +49 -0
- data/lib/concourse-objects/resources/git.rb +1 -0
- data/lib/concourse-objects/resources/github-list-repos.rb +1 -0
- data/lib/concourse-objects/resources/github-pr.rb +1 -0
- data/lib/concourse-objects/resources/github-release.rb +1 -0
- data/lib/concourse-objects/resources/github-status.rb +48 -0
- data/lib/concourse-objects/resources/github-webhook.rb +1 -0
- data/lib/concourse-objects/resources/grafana.rb +1 -0
- data/lib/concourse-objects/resources/hangouts.rb +35 -0
- data/lib/concourse-objects/resources/helm-chart.rb +1 -0
- data/lib/concourse-objects/resources/helm.rb +1 -0
- data/lib/concourse-objects/resources/hg.rb +1 -0
- data/lib/concourse-objects/resources/hipchat-notification.rb +1 -0
- data/lib/concourse-objects/resources/hockey.rb +32 -0
- data/lib/concourse-objects/resources/irc-notification.rb +1 -0
- data/lib/concourse-objects/resources/keyval.rb +1 -0
- data/lib/concourse-objects/resources/kubernetes-resource.rb +41 -0
- data/lib/concourse-objects/resources/kubernetes.rb +55 -0
- data/lib/concourse-objects/resources/marathon.rb +45 -0
- data/lib/concourse-objects/resources/maven.rb +43 -0
- data/lib/concourse-objects/resources/metadata.rb +1 -0
- data/lib/concourse-objects/resources/mock.rb +1 -0
- data/lib/concourse-objects/resources/newrelic-deploy.rb +31 -0
- data/lib/concourse-objects/resources/pool.rb +1 -0
- data/lib/concourse-objects/resources/registry-image.rb +1 -0
- data/lib/concourse-objects/resources/repo.rb +31 -0
- data/lib/concourse-objects/resources/rocketchat-notification.rb +43 -0
- data/lib/concourse-objects/resources/romver.rb +81 -0
- data/lib/concourse-objects/resources/rss.rb +1 -0
- data/lib/concourse-objects/resources/rubygems.rb +1 -0
- data/lib/concourse-objects/resources/s3.rb +1 -0
- data/lib/concourse-objects/resources/semver.rb +1 -0
- data/lib/concourse-objects/resources/serverspec.rb +30 -0
- data/lib/concourse-objects/resources/slack-notification.rb +1 -0
- data/lib/concourse-objects/resources/sonarqube.rb +70 -0
- data/lib/concourse-objects/resources/swift.rb +43 -0
- data/lib/concourse-objects/resources/telegram.rb +41 -0
- data/lib/concourse-objects/resources/time.rb +1 -0
- metadata +35 -2
- metadata.gz.sig +2 -3
@@ -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 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"
|
@@ -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
|
@@ -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 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
|
@@ -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
|