Sha256: 382e91c860305ef72cf6ff3cbd4ccc355df69186634967c13748abcf83b6d2bb
Contents?: true
Size: 1.5 KB
Versions: 2
Compression:
Stored size: 1.5 KB
Contents
module Dpl module Providers class Atlas < Provider status :alpha description sq(<<-str) tbd str opt '--app APP', 'The Atlas application to upload to', required: true opt '--token TOKEN', 'The Atlas API token', required: true, secret: true opt '--paths PATH', 'Files or directories to upload', type: :array, default: ['.'] opt '--address ADDR', 'The address of the Atlas server' opt '--include GLOB', 'Glob pattern of files or directories to include', type: :array opt '--exclude GLOB', 'Glob pattern of files or directories to exclude', type: :array opt '--metadata DATA', 'Arbitrary key=value (string) metadata to be sent with the upload', type: :array opt '--vcs', 'Get lists of files to exclude and include from a VCS (Git, Mercurial or SVN)' opt '--args ARGS', 'Args to pass to the atlas-upload CLI' opt '--debug', 'Turn on debug output' cmds upload: 'atlas-upload %{args} %{app} %{path}' def setup ENV['ATLAS_TOKEN'] = token end def install script :install end def deploy paths.each { |path| upload(path) } end private def upload(path) shell :upload, path: path # shell ['atlas-upload', args, app, path].compact.join(' ') end ARGS = %i(address exclude include metadata vcs debug) def args super || opts_for(ARGS, prefix: '-') end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dpl-2.0.0.alpha.2 | lib/dpl/providers/atlas.rb |
dpl-2.0.0.alpha.1 | lib/dpl/providers/atlas.rb |