Sha256: d61d5291ebb6ad33b43e4c9ae1cc6d1a8590a0844bc9bc16b01f557299abce82

Contents?: true

Size: 819 Bytes

Versions: 4

Compression:

Stored size: 819 Bytes

Contents

module Dpl
  module Providers
    class Script < Provider
      status :alpha

      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

4 entries across 4 versions & 1 rubygems

Version Path
dpl-2.0.0.alpha.6 lib/dpl/providers/script.rb
dpl-2.0.0.alpha.5 lib/dpl/providers/script.rb
dpl-2.0.0.alpha.2 lib/dpl/providers/script.rb
dpl-2.0.0.alpha.1 lib/dpl/providers/script.rb