Module: Gordon::Cookery::HttpServer

Includes:
Common
Included in:
RubyWebApp
Defined in:
lib/gordon/cookery/http_server.rb

Constant Summary

Constants included from Common

Common::MAIN_BLACKLIST_FILES

Instance Method Summary collapse

Methods included from Common

#all_files_except_blacklisted, #create_skeleton_type, #get_skeleton_path_from_type, included

Instance Method Details

#install_http_server_files(env_vars, blacklist) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/gordon/cookery/http_server.rb', line 6

def install_http_server_files(env_vars, blacklist)
  skeleton_path = get_skeleton_path_from_type(env_vars, env_vars.http_server_type)

  app_source_excludes = env_vars.app_source_excludes

  application_files = all_files_except_blacklisted(blacklist, app_source_excludes)

  root(skeleton_path).install application_files
end