incubator-deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject svn commit: r1039022 - in /incubator/deltacloud/trunk/server/lib/deltacloud: drivers/ec2/ec2_driver.rb models/instance.rb
Date Thu, 25 Nov 2010 12:35:08 GMT
Author: mfojtik
Date: Thu Nov 25 12:35:08 2010
New Revision: 1039022

URL: http://svn.apache.org/viewvc?rev=1039022&view=rev
Log:
Fixed Unit tests under server dir (moved auth_feature_failed method to Instance model)

Modified:
    incubator/deltacloud/trunk/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
    incubator/deltacloud/trunk/server/lib/deltacloud/models/instance.rb

Modified: incubator/deltacloud/trunk/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/drivers/ec2/ec2_driver.rb?rev=1039022&r1=1039021&r2=1039022&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/drivers/ec2/ec2_driver.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/drivers/ec2/ec2_driver.rb Thu Nov 25
12:35:08 2010
@@ -22,16 +22,6 @@ require 'active_support'
 require 'AWS'
 require 'right_aws'
 
-class Instance
-  attr_accessor :keyname
-  attr_accessor :authn_error
-
-  def authn_feature_failed?
-    return true unless authn_error.nil?
-  end
-
-end
-
 module Deltacloud
   module Drivers
     module EC2

Modified: incubator/deltacloud/trunk/server/lib/deltacloud/models/instance.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/models/instance.rb?rev=1039022&r1=1039021&r2=1039022&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/models/instance.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/models/instance.rb Thu Nov 25 12:35:08
2010
@@ -29,7 +29,9 @@ class Instance < BaseModel
   attr_accessor :private_addresses
   attr_accessor :instance_profile
   attr_accessor :launch_time
-  
+  attr_accessor :keyname
+  attr_accessor :authn_error
+
   def initialize(init=nil)
     super(init)
     self.actions = [] if self.actions.nil?
@@ -45,4 +47,9 @@ class Instance < BaseModel
     end
   end
 
+  def authn_feature_failed?
+    return true unless authn_error.nil?
+  end
+ 
+
 end



Mime
View raw message