dpl 1.6.7.travis.527.1 → 1.6.7.travis.535.1

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MjJjNjk0Y2Y1NDc1ZDUwMmFlMGIyNjAyNTkwYzM3NzdlNzdhODY3Mw==
4
+ ZTc2ZDJjNGU4MjIxMGQ1MGJjMDcyYWQyMDA3MDdlMThhZjkzZDZjZQ==
5
5
  data.tar.gz: !binary |-
6
- YTNkODIzNDQ5NDcyMjYzMDBhYjk5ZWRjYmE1NTFkMzFmNGY3ZmFhMw==
6
+ YTFhYTM5NDFmOWY5ZDkxOGQ5YzY4ZDg0NzQzOThkNWNlZDVkOTcxMQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OTFiYjFiMWU5OTBkMjI2ZDdkZDNjOTI1OWYzYzQ1NDg4ZjBhZWJkYmY2NmE4
10
- YWI0OGFkZWM3MzVkZTdkMjVhOWY0YTBmOTRlNTMzZjZmZjgzN2M3OThkNzAw
11
- YmUyNmNhNTc4YjY2ZDVkYjdjZDFhOWQzNWUxOGM3Mzk1YjAyNDE=
9
+ OGRmNmZiMTUwNjExOTgzOTU5MjcyZTNhNDk5MmFhNGI0ZGYxNDA3MDcwMzE4
10
+ YWNmODBhNmNiZDg0OTA0ODk1YjAxYzE0OTVjNWI4ODM5ZTdmNWJmMThmMGE1
11
+ OTI5YzA0MWQ1NDQzY2IzNjNiMmRhYjAwMzg4NTE5NzA1NWFiODg=
12
12
  data.tar.gz: !binary |-
13
- Mzc4ZDg1Zjk1YjAxODQ2ZGU5Y2ZhYTYyNTEyMDYwZDUyNjJjNWQ5Y2I5NGNk
14
- NzYwMjg3NzJiNzI3Yzc3N2VlMTYyZDVjNjM2YTJhMWFlYWYwNGExYjQ0OWNh
15
- OTcxZWY4M2E5MzFiOWU4NTE1MTJlZjA5ZDQ3YTZmOWJmY2E1NTM=
13
+ ZWYxMzZiZWI4NzliYzljZjQ3M2U3NTAwMTBiMTg2ZDA2MjE3MTQ5OTBjZjVi
14
+ MGVkZmZlYWFjZGZkYWIzOGFjNWVlZWNiZmNiODk2ZDg0YWRkNzgwODUxMWQx
15
+ YjI4MjEzNTA1NjJhYWUwZTUzODk5MTgzNWExZTkzOTA2ZGZmOGY=
@@ -12,8 +12,6 @@ deploy:
12
12
  on:
13
13
  repo: travis-ci/dpl
14
14
  ruby: 1.9.3
15
- tags: true
16
- all_branches: true
17
15
 
18
16
  notifications:
19
17
  webhooks: "http://requestb.in/1guaq7t1"
data/Gemfile CHANGED
@@ -50,3 +50,7 @@ group :elastic_beanstalk do
50
50
  gem 'rubyzip'
51
51
  gem 'aws-sdk'
52
52
  end
53
+
54
+ group :bitballoon do
55
+ gem 'bitballoon'
56
+ end
data/README.md CHANGED
@@ -5,6 +5,7 @@
5
5
  Dpl supports the following providers:
6
6
 
7
7
  * [AppFog](#appfog)
8
+ * [BitBalloon](#bitballoon)
8
9
  * [Cloud 66](#cloud-66)
9
10
  * [Cloud Foundry](#cloud-foundry)
10
11
  * [cloudControl](#cloudcontrol)
@@ -193,7 +194,7 @@ As a rule of thumb, you should switch to the Git strategy if you run into issues
193
194
 
194
195
  dpl --provider=s3 --access-key-id=<access-key-id> --secret-access-key=<secret-access-key> --bucket=<bucket> --acl=public_read
195
196
  dpl --provider=s3 --access-key-id=<access-key-id> --secret-access-key=<secret-access-key> --bucket=<bucket> --detect-encoding --cache_control=max-age=99999 --expires="2012-12-21 00:00:00 -0000"
196
- dpl --provider=s3 --access-key-id=<access-key-id> --secret-access-key=<secret-access-key> --bucket=<bucket> --region:us-west-2 --local-dir= BUILD --upload-dir=BUILDS
197
+ dpl --provider=s3 --access-key-id=<access-key-id> --secret-access-key=<secret-access-key> --bucket=<bucket> --region=us-west-2 --local-dir= BUILD --upload-dir=BUILDS
197
198
 
198
199
  ### OpsWorks:
199
200
 
@@ -373,3 +374,17 @@ For accounts using two factor authentication, you have to use an oauth token as
373
374
  #### Examples:
374
375
 
375
376
  dpl --provider=elasticbeanstalk --access-key-id=<access-key-id> --secret-access-key="<secret-access-key>" --app="example-app-name" --env="example-app-environment" --region="us-west-2"
377
+
378
+ ### BitBalloon:
379
+
380
+ #### Options:
381
+
382
+ * **access_token**: Optinoal. The access_token which can be found in the `.bitballoon` file after a deployment using the bitballoon CLI. Only required if no `.bitballoon` file is present.
383
+ * **site_id**: Optional. The site_id which can be found in the .bitballoon file after a deployment using the bitballoon CLI. Only required if no `.bitballoon` file is present.
384
+ * **local_dir**: Optional. The sub-directory of the built assets for deployment. Default to current path.
385
+
386
+ #### Examples:
387
+
388
+ dpl --access-token=<access-token> --site-id=3f932c1e-708b-4573-938a-a07d9728c22e
389
+ dpl --access-token=<access-token> --site-id=3f932c1e-708b-4573-938a-a07d9728c22e --local-dir=build
390
+
@@ -28,6 +28,7 @@ module DPL
28
28
  autoload :Deis, 'dpl/provider/deis'
29
29
  autoload :GCS, 'dpl/provider/gcs'
30
30
  autoload :GAE, 'dpl/provider/gae'
31
+ autoload :BitBalloon, 'dpl/provider/bitballoon'
31
32
  autoload :ElasticBeanstalk, 'dpl/provider/elastic_beanstalk'
32
33
 
33
34
  def self.new(context, options)
@@ -0,0 +1,22 @@
1
+ module DPL
2
+ class Provider
3
+ class BitBalloon < Provider
4
+ requires 'bitballoon'
5
+
6
+ def check_auth
7
+ end
8
+
9
+ def needs_key?
10
+ false
11
+ end
12
+
13
+ def push_app
14
+ command = 'bitballoon deploy'
15
+ command << " ./#{option(:local_dir)}" if options.fetch(:local_dir,false)
16
+ command << " --site-id=#{option(:site_id)}" if options[:site_id]
17
+ command << " --access-token=#{option(:access_token)}" if options[:access_token]
18
+ context.shell command
19
+ end
20
+ end
21
+ end
22
+ end
@@ -7,9 +7,9 @@ module DPL
7
7
  experimental 'Google App Engine'
8
8
 
9
9
  # https://developers.google.com/appengine/downloads
10
- GAE_VERSION='1.9.8'
10
+ GAE_VERSION='1.9.10'
11
11
  GAE_ZIP_FILE="google_appengine_#{GAE_VERSION}.zip"
12
- SHA1SUM='9835547cd2566ab1eaffe15e4697724eba08831f'
12
+ SHA1SUM='790fee21ee697434586d3cd36fd2e59f6899a2c3'
13
13
  BASE_DIR=Dir.pwd
14
14
  GAE_DIR=File.join(BASE_DIR, 'google_appengine')
15
15
  APPCFG_BIN=File.join(GAE_DIR, 'appcfg.py')
@@ -0,0 +1,32 @@
1
+ require 'spec_helper'
2
+ require 'dpl/provider/bitballoon'
3
+
4
+ describe DPL::Provider::BitBalloon do
5
+ subject :provider do
6
+ described_class.new(DummyContext.new,{})
7
+ end
8
+
9
+ describe "#needs_key?" do
10
+ example do
11
+ expect(provider.needs_key?).to eq(false)
12
+ end
13
+ end
14
+
15
+ describe "#push_app" do
16
+ example "Without optional parameters" do
17
+ expect(provider.context).to receive(:shell).with("bitballoon deploy")
18
+ provider.push_app
19
+ end
20
+
21
+ example "With optional parameters" do
22
+ provider.options.update(local_dir: 'build')
23
+ provider.options.update(access_token:'fake-access-token')
24
+ provider.options.update(site_id:'fake-site')
25
+
26
+ expected_command = "bitballoon deploy ./build --site-id=fake-site --access-token=fake-access-token"
27
+
28
+ expect(provider.context).to receive(:shell).with(expected_command)
29
+ provider.push_app
30
+ end
31
+ end
32
+ 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.6.7.travis.527.1
4
+ version: 1.6.7.travis.535.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-18 00:00:00.000000000 Z
11
+ date: 2014-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -100,6 +100,7 @@ files:
100
100
  - lib/dpl/error.rb
101
101
  - lib/dpl/provider.rb
102
102
  - lib/dpl/provider/appfog.rb
103
+ - lib/dpl/provider/bitballoon.rb
103
104
  - lib/dpl/provider/cloud66.rb
104
105
  - lib/dpl/provider/cloud_files.rb
105
106
  - lib/dpl/provider/cloud_foundry.rb
@@ -132,6 +133,7 @@ files:
132
133
  - notes/heroku.md
133
134
  - spec/cli_spec.rb
134
135
  - spec/provider/appfog_spec.rb
136
+ - spec/provider/bitballoon_spec.rb
135
137
  - spec/provider/cloud66_spec.rb
136
138
  - spec/provider/cloud_files_spec.rb
137
139
  - spec/provider/cloudcontrol_spec.rb
@@ -177,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
179
  version: 1.3.1
178
180
  requirements: []
179
181
  rubyforge_project:
180
- rubygems_version: 2.3.0
182
+ rubygems_version: 2.4.1
181
183
  signing_key:
182
184
  specification_version: 4
183
185
  summary: deploy tool