Sha256: 606c85004f8379cba90dea12a0f85a2af3373de4c1d1ccd448694a720d4a6675

Contents?: true

Size: 813 Bytes

Versions: 5

Compression:

Stored size: 813 Bytes

Contents

module Dpl
  module Providers
    class Netlify < Provider
      status :alpha

      description sq(<<-str)
        tbd
      str

      npm 'netlify-cli', 'netlify'

      env :netlify

      opt '--site ID',         'A site ID to deploy to', required: true
      opt '--auth TOKEN',      'An auth token to log in with', required: true, secret: true
      opt '--dir DIR',         'Specify a folder to deploy'
      opt '--functions FUNCS', 'Specify a functions folder to deploy'
      opt '--message MSG',     'A message to include in the deploy log'
      opt '--prod',            'Deploy to production'

      def deploy
        shell "netlify deploy #{deploy_opts}"
      end

      private

        def deploy_opts
          opts_for(%i(site auth dir functions message prod))
        end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dpl-2.0.0.alpha.9 lib/dpl/providers/netlify.rb
dpl-2.0.0.alpha.8 lib/dpl/providers/netlify.rb
dpl-2.0.0.alpha.7 lib/dpl/providers/netlify.rb
dpl-2.0.0.alpha.6 lib/dpl/providers/netlify.rb
dpl-2.0.0.alpha.5 lib/dpl/providers/netlify.rb