Sha256: 417705e903f9d5cf3695e32dace05d422157973f42b4b7fee7c0a09c2302c766
Contents?: true
Size: 1.19 KB
Versions: 5
Compression:
Stored size: 1.19 KB
Contents
module Dpl module Providers class Openshift < Provider status :beta full_name 'OpenShift' description sq(<<-str) tbd str env :openshift opt '--server SERVER', 'OpenShift server', required: true opt '--token TOKEN', 'OpenShift token', required: true, secret: true opt '--project PROJECT', 'OpenShift project', required: true opt '--app APP', 'OpenShift application', default: :repo_name cmds install: 'curl %{URL} | tar xz', login: './oc login --token=%{token} --server=%{server}', prepare: './oc project %{project}', deploy: './oc start-build %{app} --follow --commit %{git_sha}' errs install: 'CLI tool installation failed', login: 'Authentication failed', prepare: 'Unable to select project %{project}', deploy: 'Deployment failed' URL = 'https://mirror.openshift.com/pub/openshift-v4/clients/oc/4.1/linux/oc.tar.gz' def install shell :install end def login shell :login end def prepare shell :prepare end def deploy shell :deploy end end end end
Version data entries
5 entries across 5 versions & 1 rubygems