fluke/devops-service/core/devops-application.rb

31 lines
441 B
Ruby
Raw Normal View History

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
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