dpl 1.7.22.travis.1056.4 → 1.7.22.travis.1057.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/README.md +20 -0
- data/lib/dpl/provider.rb +1 -0
- data/lib/dpl/provider/azure_webapps.rb +40 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZDdlZjM4ZmM5NGU3MTIzODY0OGY5NGE5MDc0MmIyOTM5ZWMzYWQzYg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NjNhNmFlMWM0ZDc0YjVkNzJjNmYzMzMwZTE4NzY5NDAzOTY2YWQ5ZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTMxZTk3MzU0ZjU0MTQxOGVhOTQ4YTU1MjMzYzE3N2RkZWE3NWUzYzQxNDM2
|
10
|
+
NTMxYzA0ZGUwMzY1NDIyYTkyOTFjY2NkMzI2MWM3MWM0NDc2YTA0ZWVhNzc5
|
11
|
+
MGVhODMwNmMyNmU1YjkxY2NlYjg2MTUxOWU0ZTY4MWQwNTg1ZDI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjVlMWU0YmU2MjU3NTI4OWYxOGI2NzMxNjYxZmU1ZmEzNjUyOGYwYjE5N2Uw
|
14
|
+
MmQzM2NlNzdhZDIwMmNjZTViOTg1NTkyZDEwOGQ3MDczODVkMWEwMjY1OGYz
|
15
|
+
OWM1Mzk4NTNiYzU3ZGI1NTI5YWYwNDhkY2ExNDMxMzBkYzNkOGU=
|
data/README.md
CHANGED
@@ -10,6 +10,7 @@ Dpl supports the following providers:
|
|
10
10
|
* [Anynines](#anynines)
|
11
11
|
* [AppFog](#appfog)
|
12
12
|
* [Atlas by HashiCorp](#atlas)
|
13
|
+
* [Azure Web Apps](#azurewebapps)
|
13
14
|
* [Biicode](#biicode)
|
14
15
|
* [Bintray](#bintray)
|
15
16
|
* [BitBalloon](#bitballoon)
|
@@ -400,6 +401,25 @@ You first need to create an [Atlas account](https://atlas.hashicorp.com/account/
|
|
400
401
|
dpl --provider=atlas --token=ATLAS_TOKEN --app=ATLAS_USERNAME/APP_NAME --exclude="*.log" --include="build/*" --include="bin/*"
|
401
402
|
dpl --provider=atlas --token=ATLAS_TOKEN --app=ATLAS_USERNAME/APP_NAME --metadata="foo=bar" --metadata="bar=baz"
|
402
403
|
|
404
|
+
### Azure Web Apps:
|
405
|
+
|
406
|
+
#### Options:
|
407
|
+
|
408
|
+
* **site**: Web App Name (if your app lives at myapp.azurewebsites.net, the name would be myapp).
|
409
|
+
* **username**: Web App Deployment Username.
|
410
|
+
* **password**: Web App Deployment Password.
|
411
|
+
* **quiet**: If passed, Azure's deployment output will not be printed.
|
412
|
+
|
413
|
+
#### Environment variables:
|
414
|
+
|
415
|
+
* **AZURE_WA_SITE** Web App Name. Used if the `site` option is omitted.
|
416
|
+
* **AZURE_WA_USERNAME**: Web App Deployment Username. Used if the `username` option is omitted.
|
417
|
+
* **AZURE_WA_PASSWORD**: Web App Deployment Password. Used if the `password` option is omitted.
|
418
|
+
|
419
|
+
#### Examples:
|
420
|
+
|
421
|
+
dpl --provider=AzureWebApps --username=depluser --password=deplp@ss --site=dplsite
|
422
|
+
|
403
423
|
### Divshot.io:
|
404
424
|
|
405
425
|
#### Options:
|
data/lib/dpl/provider.rb
CHANGED
@@ -9,6 +9,7 @@ module DPL
|
|
9
9
|
autoload :Anynines, 'dpl/provider/anynines'
|
10
10
|
autoload :Appfog, 'dpl/provider/appfog'
|
11
11
|
autoload :Atlas, 'dpl/provider/atlas'
|
12
|
+
autoload :AzureWebApps, 'dpl/provider/azure_webapps'
|
12
13
|
autoload :Biicode, 'dpl/provider/biicode'
|
13
14
|
autoload :Bintray, 'dpl/provider/bintray'
|
14
15
|
autoload :BitBalloon, 'dpl/provider/bitballoon'
|
@@ -0,0 +1,40 @@
|
|
1
|
+
module DPL
|
2
|
+
class Provider
|
3
|
+
class AzureWebApps < Provider
|
4
|
+
def config
|
5
|
+
{
|
6
|
+
"username" => options[:username] || context.env['AZURE_WA_USERNAME'],
|
7
|
+
"password" => options[:password] || context.env['AZURE_WA_PASSWORD'],
|
8
|
+
"site" => options[:site] || context.env['AZURE_WA_SITE']
|
9
|
+
}
|
10
|
+
end
|
11
|
+
|
12
|
+
def git_target
|
13
|
+
"https://#{config['username']}:#{config['password']}@#{config['site']}.scm.azurewebsites.net:443/#{config['site']}.git"
|
14
|
+
end
|
15
|
+
|
16
|
+
def needs_key?
|
17
|
+
false
|
18
|
+
end
|
19
|
+
|
20
|
+
def check_app
|
21
|
+
end
|
22
|
+
|
23
|
+
def check_auth
|
24
|
+
error "missing Azure Git Deployment username" unless config['username']
|
25
|
+
error "missing Azure Git Deployment password" unless config['password']
|
26
|
+
error "missing Azure Web App name" unless config['site']
|
27
|
+
end
|
28
|
+
|
29
|
+
def push_app
|
30
|
+
log "Deploying to Azure Web App '#{config['site']}'"
|
31
|
+
|
32
|
+
if !!options[:quiet]
|
33
|
+
context.shell "git push --force --quiet #{git_target} master > /dev/null 2>&1"
|
34
|
+
else
|
35
|
+
context.shell "git push --force --quiet #{git_target} master"
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dpl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.22.travis.
|
4
|
+
version: 1.7.22.travis.1057.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konstantin Haase
|
@@ -118,6 +118,7 @@ files:
|
|
118
118
|
- lib/dpl/provider/anynines.rb
|
119
119
|
- lib/dpl/provider/appfog.rb
|
120
120
|
- lib/dpl/provider/atlas.rb
|
121
|
+
- lib/dpl/provider/azure_webapps.rb
|
121
122
|
- lib/dpl/provider/biicode.rb
|
122
123
|
- lib/dpl/provider/bintray.rb
|
123
124
|
- lib/dpl/provider/bitballoon.rb
|