Module: Gordon::Cookery::WebServer

Includes:
Common
Included in:
JavaWebApp
Defined in:
lib/gordon/cookery/web_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_web_server_files(env_vars, blacklist) ⇒ Object



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

def install_web_server_files(env_vars, blacklist)
  skeleton_path = get_skeleton_path_from_type(env_vars, env_vars.web_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