engineyard-cloud-client 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,7 +8,7 @@ module EY
8
8
  :username, :app_server_stack_name,
9
9
  :load_balancer_ip_address
10
10
  )
11
- attr_accessor :ignore_bad_bridge, :apps, :account
11
+ attr_accessor :apps, :account
12
12
 
13
13
  def attributes=(attrs)
14
14
  account_attrs = attrs.delete('account')
@@ -129,7 +129,7 @@ module EY
129
129
  @bridge ||= instances.detect { |inst| inst.bridge? }
130
130
  end
131
131
 
132
- def bridge!
132
+ def bridge!(ignore_bad_bridge = false)
133
133
  if bridge.nil?
134
134
  raise NoBridgeError.new(name)
135
135
  elsif !ignore_bad_bridge && bridge.status != "running"
@@ -1,7 +1,7 @@
1
1
  # This file is maintained by a herd of rabid monkeys with Rakes.
2
2
  module EY
3
3
  class CloudClient
4
- VERSION = '1.0.1'
4
+ VERSION = '1.0.2'
5
5
  end
6
6
  end
7
7
  # Please be aware that the monkeys like tho throw poo sometimes.
@@ -261,9 +261,9 @@ describe EY::CloudClient::Environment do
261
261
 
262
262
  it "returns the bridge if told to ignore the bridge being in a non-running state" do
263
263
  env = make_env_with_bridge("status" => "error")
264
- env.ignore_bad_bridge = true
265
- env.bridge!.should_not be_nil
266
- env.bridge!.id.should == 44206
264
+ ignore_bad_bridge = true
265
+ env.bridge!(ignore_bad_bridge).should_not be_nil
266
+ env.bridge!(ignore_bad_bridge).id.should == 44206
267
267
  end
268
268
 
269
269
  it "raises an error if the bridge has fallen down" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: engineyard-cloud-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-22 00:00:00.000000000 Z
12
+ date: 2012-05-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client
@@ -347,7 +347,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
347
347
  version: '0'
348
348
  segments:
349
349
  - 0
350
- hash: -2184825853889346664
350
+ hash: 551294076899789604
351
351
  required_rubygems_version: !ruby/object:Gem::Requirement
352
352
  none: false
353
353
  requirements:
@@ -356,7 +356,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
356
356
  version: '0'
357
357
  segments:
358
358
  - 0
359
- hash: -2184825853889346664
359
+ hash: 551294076899789604
360
360
  requirements: []
361
361
  rubyforge_project:
362
362
  rubygems_version: 1.8.24