dpl 1.8.2.travis.1071.4 → 1.8.2.travis.1075.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 +18 -18
- data/lib/dpl/provider/cloud_foundry.rb +5 -6
- data/spec/provider/anynines_spec.rb +1 -2
- data/spec/provider/cloudfoundry_spec.rb +7 -8
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
OTczODdkMGE2ZDY1YzczODQzOGIwNzcxZjE2N2ZjODFjYzM0OTljYw==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
NzhjMTA5OWJjMDBmNTU4OTZiMTUzNThmMTZmY2YwOTg4N2Y0MWRjNg==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
ZTM0NDQwNzc1ZTAzN2RkMWI4MmFjN2IxMjNkNDJkOGRmMWU1ZDNhZTA5ZGU0
|
|
10
|
+
NmIwZmVkYjJiYjRiNzIwM2QyZjhjNTM4ZjRkMGNkYWQ4NzI1ZWQzYTViMDBm
|
|
11
|
+
MGE2ZDcyYTljNGEzNzI0MGZiNGQxMTExMjg1Y2U4YjQ4MWE2ZGQ=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
Y2IxNWJiOWUzNDRjM2RhNTJhMDdmYWVmY2U5ZWYwNTAyMTI3YTY3YTAyNTc5
|
|
14
|
+
MzM3ZTFmNmEyZDAxMTI4MDg0ZjlhOTdlOTFhOTdiZjA1MWIxZGI3MTgzNDI0
|
|
15
|
+
NGU1N2E0NDU1NTE5YTJhZTA5ZjM4ZDQyOGZiOTVhNjY5NGNiYmI=
|
data/README.md
CHANGED
|
@@ -10,41 +10,41 @@ Dpl supports the following providers:
|
|
|
10
10
|
* [Anynines](#anynines)
|
|
11
11
|
* [AppFog](#appfog)
|
|
12
12
|
* [Atlas by HashiCorp](#atlas)
|
|
13
|
-
* [
|
|
13
|
+
* [AWS CodeDeploy](#aws-codedeploy)
|
|
14
|
+
* [AWS OpsWorks](#opsworks)
|
|
15
|
+
* [Azure Web Apps](#azure-web-apps)
|
|
14
16
|
* [Biicode](#biicode)
|
|
15
17
|
* [Bintray](#bintray)
|
|
16
18
|
* [BitBalloon](#bitballoon)
|
|
17
19
|
* [Boxfuse](#boxfuse)
|
|
20
|
+
* [Chef Supermarket](#chef-supermarket)
|
|
18
21
|
* [Cloud 66](#cloud-66)
|
|
19
22
|
* [Cloud Foundry](#cloud-foundry)
|
|
20
23
|
* [cloudControl](#cloudcontrol)
|
|
24
|
+
* [Deis](#deis)
|
|
25
|
+
* [Divshot.io](#divshotio)
|
|
21
26
|
* [dotCloud (experimental)](#dotcloud)
|
|
27
|
+
* [Elastic Beanstalk](#elastic-beanstalk)
|
|
22
28
|
* [Engine Yard](#engine-yard)
|
|
29
|
+
* [ExoScale](#exoscale)
|
|
30
|
+
* [Github Releases](#github-releases)
|
|
31
|
+
* [Google App Engine (experimental)](#google-app-engine)
|
|
32
|
+
* [Google Cloud Storage](#google-cloud-storage)
|
|
33
|
+
* [Hackage](#hackage)
|
|
23
34
|
* [Heroku](#heroku)
|
|
35
|
+
* [Lambda](#lambda)
|
|
36
|
+
* [Modulus](#modulus)
|
|
24
37
|
* [Nodejitsu](#nodejitsu)
|
|
25
38
|
* [NPM](#npm)
|
|
26
39
|
* [OpenShift](#openshift)
|
|
40
|
+
* [packagecloud](#packagecloud)
|
|
41
|
+
* [Puppet Forge](#puppet-forge)
|
|
27
42
|
* [PyPi](#pypi)
|
|
43
|
+
* [Rackspace Cloud Files](#rackspace-cloud-files)
|
|
28
44
|
* [RubyGems](#rubygems)
|
|
29
45
|
* [S3](#s3)
|
|
30
|
-
* [Divshot.io](#divshotio)
|
|
31
|
-
* [Rackspace Cloud Files](#rackspace-cloud-files)
|
|
32
|
-
* [AWS OpsWorks](#opsworks)
|
|
33
|
-
* [Modulus](#modulus)
|
|
34
|
-
* [Github Releases](#github-releases)
|
|
35
|
-
* [Hackage](#hackage)
|
|
36
|
-
* [Deis](#deis)
|
|
37
|
-
* [Google Cloud Storage](#google-cloud-storage)
|
|
38
|
-
* [Elastic Beanstalk](#elastic-beanstalk)
|
|
39
|
-
* [Puppet Forge](#puppet-forge)
|
|
40
|
-
* [packagecloud](#packagecloud)
|
|
41
|
-
* [Chef Supermarket](#chef-supermarket)
|
|
42
|
-
* [Lambda](#lambda)
|
|
43
|
-
* [TestFairy](#testfairy)
|
|
44
|
-
* [ExoScale](#exoscale)
|
|
45
|
-
* [AWS CodeDeploy](#aws-codedeploy)
|
|
46
46
|
* [Script](#script)
|
|
47
|
-
* [
|
|
47
|
+
* [TestFairy](#testfairy)
|
|
48
48
|
|
|
49
49
|
## Installation:
|
|
50
50
|
|
|
@@ -3,14 +3,13 @@ module DPL
|
|
|
3
3
|
class CloudFoundry < Provider
|
|
4
4
|
|
|
5
5
|
def initial_go_tools_install
|
|
6
|
-
context.shell 'wget http://go-cli.s3-website-us-east-1.amazonaws.com/releases/latest/cf-
|
|
7
|
-
context.shell 'rm temp.deb'
|
|
6
|
+
context.shell 'wget http://go-cli.s3-website-us-east-1.amazonaws.com/releases/latest/cf-linux-amd64.tgz -qO cf-linux-amd64.tgz && tar -zxvf cf-linux-amd64.tgz && rm cf-linux-amd64.tgz'
|
|
8
7
|
end
|
|
9
8
|
|
|
10
9
|
def check_auth
|
|
11
10
|
initial_go_tools_install
|
|
12
|
-
context.shell "cf api #{option(:api)} #{'--skip-ssl-validation' if options[:skip_ssl_validation]}"
|
|
13
|
-
context.shell "cf login --u #{option(:username)} --p #{option(:password)} --o #{option(:organization)} --s #{option(:space)}"
|
|
11
|
+
context.shell "./cf api #{option(:api)} #{'--skip-ssl-validation' if options[:skip_ssl_validation]}"
|
|
12
|
+
context.shell "./cf login --u #{option(:username)} --p #{option(:password)} --o #{option(:organization)} --s #{option(:space)}"
|
|
14
13
|
end
|
|
15
14
|
|
|
16
15
|
def check_app
|
|
@@ -24,8 +23,8 @@ module DPL
|
|
|
24
23
|
end
|
|
25
24
|
|
|
26
25
|
def push_app
|
|
27
|
-
context.shell "cf push#{manifest}"
|
|
28
|
-
context.shell "cf logout"
|
|
26
|
+
context.shell "./cf push#{manifest}"
|
|
27
|
+
context.shell "./cf logout"
|
|
29
28
|
end
|
|
30
29
|
|
|
31
30
|
def cleanup
|
|
@@ -11,8 +11,7 @@ describe DPL::Provider::Anynines do
|
|
|
11
11
|
|
|
12
12
|
describe "#check_auth" do
|
|
13
13
|
example do
|
|
14
|
-
expect(provider.context).to receive(:shell).with('wget http://go-cli.s3-website-us-east-1.amazonaws.com/releases/latest/cf-
|
|
15
|
-
expect(provider.context).to receive(:shell).with('rm temp.deb')
|
|
14
|
+
expect(provider.context).to receive(:shell).with('wget http://go-cli.s3-website-us-east-1.amazonaws.com/releases/latest/cf-linux-amd64.tgz -qO cf-linux-amd64.tgz && tar -zxvf cf-linux-amd64.tgz && rm cf-linux-amd64.tgz')
|
|
16
15
|
expect(provider.context).to receive(:shell).with('cf api https://api.de.a9s.eu')
|
|
17
16
|
expect(provider.context).to receive(:shell).with('cf login --u mallomar --p myreallyawesomepassword --o myorg --s outer')
|
|
18
17
|
provider.check_auth
|
|
@@ -13,10 +13,9 @@ describe DPL::Provider::CloudFoundry do
|
|
|
13
13
|
|
|
14
14
|
describe "#check_auth" do
|
|
15
15
|
example do
|
|
16
|
-
expect(provider.context).to receive(:shell).with('wget http://go-cli.s3-website-us-east-1.amazonaws.com/releases/latest/cf-
|
|
17
|
-
expect(provider.context).to receive(:shell).with('
|
|
18
|
-
expect(provider.context).to receive(:shell).with('cf
|
|
19
|
-
expect(provider.context).to receive(:shell).with('cf login --u mallomar --p myreallyawesomepassword --o myorg --s outer')
|
|
16
|
+
expect(provider.context).to receive(:shell).with('wget http://go-cli.s3-website-us-east-1.amazonaws.com/releases/latest/cf-linux-amd64.tgz -qO cf-linux-amd64.tgz && tar -zxvf cf-linux-amd64.tgz && rm cf-linux-amd64.tgz')
|
|
17
|
+
expect(provider.context).to receive(:shell).with('./cf api api.run.awesome.io --skip-ssl-validation')
|
|
18
|
+
expect(provider.context).to receive(:shell).with('./cf login --u mallomar --p myreallyawesomepassword --o myorg --s outer')
|
|
20
19
|
provider.check_auth
|
|
21
20
|
end
|
|
22
21
|
end
|
|
@@ -45,15 +44,15 @@ describe DPL::Provider::CloudFoundry do
|
|
|
45
44
|
|
|
46
45
|
describe "#push_app" do
|
|
47
46
|
example "With manifest" do
|
|
48
|
-
expect(provider.context).to receive(:shell).with('cf push -f worker-manifest.yml')
|
|
49
|
-
expect(provider.context).to receive(:shell).with('cf logout')
|
|
47
|
+
expect(provider.context).to receive(:shell).with('./cf push -f worker-manifest.yml')
|
|
48
|
+
expect(provider.context).to receive(:shell).with('./cf logout')
|
|
50
49
|
provider.push_app
|
|
51
50
|
end
|
|
52
51
|
|
|
53
52
|
example "Without manifest" do
|
|
54
53
|
provider.options.update(:manifest => nil)
|
|
55
|
-
expect(provider.context).to receive(:shell).with('cf push')
|
|
56
|
-
expect(provider.context).to receive(:shell).with('cf logout')
|
|
54
|
+
expect(provider.context).to receive(:shell).with('./cf push')
|
|
55
|
+
expect(provider.context).to receive(:shell).with('./cf logout')
|
|
57
56
|
provider.push_app
|
|
58
57
|
end
|
|
59
58
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dpl
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.8.2.travis.
|
|
4
|
+
version: 1.8.2.travis.1075.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Konstantin Haase
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-09-
|
|
11
|
+
date: 2015-09-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|