fluke/devops-service/core/devops-application.rb
2015-11-20 15:14:59 +03:00

31 lines
441 B
Ruby

module Devops
class Application
@@applications = []
def self.inherited(base)
@@applications << base.new
puts "Devops application '#{base}' has been added" unless ENV['RACK_ENV'] == 'test'
end
def self.applications
@@applications
end
def self.root
File.expand_path(File.dirname(__FILE__) + '/..')
end
def prepare
end
def init
end
def routes
end
end
end