| 
									
										
										
										
											2015-07-16 12:54:16 +03:00
										 |  |  | module Devops | 
					
						
							|  |  |  |   class Application | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     @@applications = [] | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def self.inherited(base) | 
					
						
							|  |  |  |       @@applications << base.new | 
					
						
							| 
									
										
										
										
											2015-11-03 11:46:54 +03:00
										 |  |  |       puts "Devops application '#{base}' has been added" unless ENV['RACK_ENV'] == 'test' | 
					
						
							| 
									
										
										
										
											2015-07-16 12:54:16 +03:00
										 |  |  |     end | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def self.applications | 
					
						
							|  |  |  |       @@applications | 
					
						
							|  |  |  |     end | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-28 14:44:28 +03:00
										 |  |  |     def self.root | 
					
						
							|  |  |  |       File.expand_path(File.dirname(__FILE__) + '/..') | 
					
						
							|  |  |  |     end | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-07-16 12:54:16 +03:00
										 |  |  |     def prepare | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     end | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def init | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     end | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def routes | 
					
						
							|  |  |  |     end | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | end |