Sha256: d16ee0616d2d3556b984887b36165e15a39f817cce5aa5232971d8838f3036e8

Contents?: true

Size: 818 Bytes

Versions: 5

Compression:

Stored size: 818 Bytes

Contents

module Dpl
  module Providers
    class Script < Provider
      status :beta

      summary 'Minimal provider that executes a custom command'

      description sq(<<-str)
        This deployment provider executes a single, custom command. This is
        usually a script that is contained in your repository, but it can be
        any command executable in the build environment.

        It is possible to pass arguments to a script deployment like so:

          dpl script -s './scripts/deploy.sh production --verbose'

        Deployment will be marked a failure if the script exits with nonzero
        status.
      str

      opt '-s', '--script SCRIPT', 'The script to execute', required: true

      def deploy
        shell script, assert: 'Script failed with status %{status}'
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dpl-2.0.0.alpha.11 lib/dpl/providers/script.rb
dpl-2.0.0.alpha.10 lib/dpl/providers/script.rb
dpl-2.0.0.alpha.9 lib/dpl/providers/script.rb
dpl-2.0.0.alpha.8 lib/dpl/providers/script.rb
dpl-2.0.0.alpha.7 lib/dpl/providers/script.rb