Sha256: 8ce07302ad894a0a40e1aa6a68a5b5af7d92bc4dc86f98812ff1132a076a51dc
Contents?: true
Size: 866 Bytes
Versions: 4
Compression:
Stored size: 866 Bytes
Contents
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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
dpl-2.0.3.beta.4 | lib/dpl/providers/netlify.rb |
dpl-2.0.3.beta.3 | lib/dpl/providers/netlify.rb |
dpl-2.0.3.beta.2 | lib/dpl/providers/netlify.rb |
dpl-2.0.3.beta.1 | lib/dpl/providers/netlify.rb |