24 lines
		
	
	
		
			429 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			429 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| module Devops
 | |
|   module Model
 | |
|     class StackEc2 < StackBase
 | |
| 
 | |
|       def initialize attr={}
 | |
|         self.provider = 'ec2'
 | |
|         super(attr)
 | |
|       end
 | |
| 
 | |
|       def stack_status
 | |
|         self.details['StackStatus'] if self.details
 | |
|       end
 | |
| 
 | |
|       def bson_safe_details
 | |
|         return unless details
 | |
|         result = details.dup
 | |
|         result['CreationTime'] = result['CreationTime'].to_s
 | |
|         result
 | |
|       end
 | |
| 
 | |
|     end
 | |
|   end
 | |
| end
 |