| 
									
										
										
										
											2015-03-06 12:20:30 +03:00
										 |  |  | module Devops | 
					
						
							|  |  |  |   module Model | 
					
						
							|  |  |  |     class StackEc2 < StackBase | 
					
						
							| 
									
										
										
										
											2015-08-04 12:40:08 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  |       def initialize attr={} | 
					
						
							|  |  |  |         self.provider = 'ec2' | 
					
						
							|  |  |  |         super(attr) | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-17 17:50:24 +03:00
										 |  |  |       def stack_status | 
					
						
							| 
									
										
										
										
											2015-09-21 17:34:20 +03:00
										 |  |  |         puts self.details.inspect | 
					
						
							|  |  |  |         self.details['StackStatus'] if self.details | 
					
						
							| 
									
										
										
										
											2015-08-17 17:50:24 +03:00
										 |  |  |       end | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-28 17:00:48 +03:00
										 |  |  |       def bson_safe_details | 
					
						
							|  |  |  |         return unless details | 
					
						
							|  |  |  |         result = details.dup | 
					
						
							|  |  |  |         result['CreationTime'] = result['CreationTime'].to_s | 
					
						
							|  |  |  |         result | 
					
						
							| 
									
										
										
										
											2015-08-18 15:55:58 +03:00
										 |  |  |       end | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-03-06 12:20:30 +03:00
										 |  |  |     end | 
					
						
							|  |  |  |   end | 
					
						
							| 
									
										
										
										
											2015-02-12 13:01:05 +03:00
										 |  |  | end |