dpl 1.4.3 → 1.4.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b842f79343d961133954e00f0083315e5d99c8bf
4
- data.tar.gz: f4a1be0a2e6a3a3f1c8cea71c5c9914ca421a94b
3
+ metadata.gz: 85131a21a674820861c5c20abed2b539c9a34050
4
+ data.tar.gz: 754b147512f52b0a78197115d6b8a18ac70193c6
5
5
  SHA512:
6
- metadata.gz: c86c355aaa1b52cbd8e1b303de16e29c1ee29c69ef994d5f9741c346b3aca8769fb4f0591dc74b0e83e5ee70ee0063f065069c5d51156161dd3c0a7930a7bf71
7
- data.tar.gz: 8f9f27bac251d9a2e8b4cf1fa88ba58d2c5a224aba68af981d49acc26dfd369d7cae4b31e101ecf9194970d0046252da3d8754f289ec45034affc3c99fe6d699
6
+ metadata.gz: a89b9cb460882b5946f6af4c53a26b756869ce7bd9f40058e0df0893607f8a9d1669a4359b2f22cae290017183e5c2ebc7e8713e08c7173dbd32898ec1f80a87
7
+ data.tar.gz: 8af90baa5b768ebfe58e228b734b3fe1e5ec27e5de3246382b276e9cd42910d815e1d5c231169def5e6a0f93acdaac56ba82c5151530e5412e06049a7fcb26e5
data/Gemfile CHANGED
@@ -1,6 +1,11 @@
1
1
  source 'https://rubygems.org'
2
2
  gemspec
3
3
 
4
+ group :cloudfoundry do
5
+ gem 'cf'
6
+ gem 'activesupport', '~> 3.2'
7
+ end
8
+
4
9
  group :heroku do
5
10
  gem 'rendezvous'
6
11
  gem 'heroku-api'
@@ -8,7 +13,7 @@ group :heroku do
8
13
  end
9
14
 
10
15
  group :openshift do
11
- gem 'rhc'
16
+ gem 'rhc'
12
17
  end
13
18
 
14
19
  group :rubygems do
data/README.md CHANGED
@@ -13,4 +13,5 @@ Supported providers:
13
13
  * cloudControl
14
14
  * RubyGems
15
15
  * Engine Yard
16
+ * Cloud Foundry
16
17
  * dotCloud (experimental)
@@ -12,6 +12,7 @@ module DPL
12
12
  autoload :Openshift, 'dpl/provider/openshift'
13
13
  autoload :RubyGems, 'dpl/provider/rubygems'
14
14
  autoload :CloudControl, 'dpl/provider/cloudcontrol'
15
+ autoload :CloudFoundry, 'dpl/provider/cloud_foundry'
15
16
 
16
17
  def self.new(context, options)
17
18
  return super if self < Provider
@@ -0,0 +1,30 @@
1
+ module DPL
2
+ class Provider
3
+ class CloudFoundry < Provider
4
+ requires 'activesupport', :version => '~> 3.2', :load => 'active_support'
5
+ requires 'cf'
6
+
7
+ def check_auth
8
+ context.shell "cf target #{option(:target)}"
9
+ context.shell "cf login --username #{option(:username)} --password #{option(:password)} --organization #{option(:organization)} --space #{option(:space)}"
10
+ end
11
+
12
+ def check_app
13
+ fail 'Application must have a manifest.yml for unattended deployment' unless File.exists? 'manifest.yml'
14
+ end
15
+
16
+ def needs_key?
17
+ false
18
+ end
19
+
20
+ def push_app
21
+ context.shell "cf push"
22
+ context.shell "cf logout"
23
+ end
24
+
25
+ def cleanup
26
+ end
27
+
28
+ end
29
+ end
30
+ end
@@ -1,3 +1,3 @@
1
1
  module DPL
2
- VERSION = '1.4.3'
2
+ VERSION = '1.4.4'
3
3
  end
@@ -14,7 +14,6 @@ describe DPL::Provider::CloudControl do
14
14
  describe 'constructor' do
15
15
  it 'with wrong arguments' do
16
16
  expect {
17
- $stdout.should receive(:write).at_least(3).times
18
17
  described_class.new(DummyContext.new, :foo_dep => 'foo_app/default', :email => 'foo@test.com', :password => 'password')
19
18
  }.to raise_error(DPL::Error)
20
19
  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.4.3
4
+ version: 1.4.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: 2013-08-14 00:00:00.000000000 Z
11
+ date: 2013-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -85,6 +85,7 @@ files:
85
85
  - lib/dpl/cli.rb
86
86
  - lib/dpl/error.rb
87
87
  - lib/dpl/provider.rb
88
+ - lib/dpl/provider/cloud_foundry.rb
88
89
  - lib/dpl/provider/cloudcontrol.rb
89
90
  - lib/dpl/provider/dot_cloud.rb
90
91
  - lib/dpl/provider/engine_yard.rb