Sha256: 16ab3b71a6f6eac583882f325262127b26d2e15d551722cf86e660a411bd0657
Contents?: true
Size: 1.56 KB
Versions: 10
Compression:
Stored size: 1.56 KB
Contents
module Dpl module Providers class AzureWebApps < Provider status :alpha full_name 'Azure Web Apps' description sq(<<-str) tbd str env :AZURE_WA opt '--username NAME', 'Web App Deployment Username', required: true opt '--password PASS', 'Web App Deployment Password', required: true, secret: true opt '--site SITE', 'Web App name (e.g. myapp in myapp.azurewebsites.net)', required: true opt '--slot SLOT', 'Slot name (if your app uses staging deployment)' opt '--verbose', 'Print deployment output from Azure. Warning: If authentication fails, Git prints credentials in clear text. Correct credentials remain hidden.' needs :git cmds checkout: 'git checkout HEAD', add: 'git add . --all --force', commit: 'git commit -m "Cleanup commit"', deploy: 'git push --force --quiet %{url} HEAD:refs/heads/master' msgs commit: 'Committing changes to git', deploy: 'Deploying to Azure Web App: %{site}' errs push: 'Failed pushing to Azure Web Apps' URL = 'https://%s:%s@%s.scm.azurewebsites.net:443/%s.git' def setup commit if git_dirty? && !cleanup? end def deploy shell :deploy, silence: !verbose? end private def url URL % [username, password, target, site] end def target slot || site end def commit shell :checkout shell :add shell :commit end end end end
Version data entries
10 entries across 10 versions & 1 rubygems