Sha256: 1153723690289864402726c2e83370524135d75a5649dbc73e760d23496f6864
Contents?: true
Size: 891 Bytes
Versions: 2
Compression:
Stored size: 891 Bytes
Contents
# frozen_string_literal: true module Dpl module Providers class Netlify < Provider register :netlify status :stable description sq(<<-STR) tbd STR node_js '>= 12.0.0' 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
travis_dpl_test-2.0.3.beta.4.ror.1 | lib/dpl/providers/netlify.rb |
travis_dpl_test-2.0.3.beta.4.ror | lib/dpl/providers/netlify.rb |