Permalink
Browse files

Add Erlang web application framework.

  • Loading branch information...
1 parent ef2a117 commit e7b03101e856ff21a05f4d328a2018ab7eef6c68 @paulj paulj committed with pbozeman Apr 14, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/cli/frameworks.rb
@@ -13,6 +13,7 @@ class Framework
'JavaWeb' => ['spring', { :mem => '512M', :description => 'Java Web Application'}],
'Sinatra' => ['sinatra', { :mem => '128M', :description => 'Sinatra Application'}],
'Node' => ['node', { :mem => '64M', :description => 'Node.js Application'}],
+ 'Erlang/OTP Rebar' => ['otp_rebar', { :mem => '64M', :description => 'Erlang/OTP Rebar Application'}]
}
class << self
@@ -70,6 +71,10 @@ def detect(path)
if File.exist?('app.js') || File.exist?('index.js') || File.exist?('main.js')
return Framework.lookup('Node')
end
+
+ # Erlang/OTP using Rebar
+ elsif !Dir.glob('releases/*/*.rel').empty? && !Dir.glob('releases/*/*.boot').empty?
+ return Framework.lookup('Erlang/OTP Rebar')
end
end
nil

0 comments on commit e7b0310

Please sign in to comment.