<commit_before>#
# Cookbook Name:: wt_cam
# Recipe:: pre
# Author: <NAME>(<<EMAIL>>)
#
# Copyright 2012, Webtrends
#
# All rights reserved - Do Not Redistribute
# This recipe sets up the base configuration for DX

log "Deploy build is #{ENV["deploy_build"]}"
if ENV["deploy_build"] == "true" then 
  #include_recipe "wt_cam::uninstall" 
end


#Properties
install_dir = "#{node['wt_common']['install_dir_windows']}\\CAM"
install_logdir = node['wt_common']['install_log_dir_windows']
app_pool = node['wt_cam']['app_pool']
url = "#{node['wt_cam']['url']}#{node['wt_cam']['zip_file']}"

pod = node.chef_environment

iis_site 'Default Web Site' do
	action [:stop, :delete]
end

directory install_dir do
	recursive true
	action :create
end

iis_site 'CAM' do
    protocol :http
    port 80
    path install_dir
	action [:add,:start]
end

if ENV["deploy_build"] == "true" then 
  windows_zipfile install_dir do
    source install_url
    action :unzip	
  end
  
  template "#{install_dir}\\web.config" do
  	source "webConfig.erb"  	
  end
  
  iis_pool app_pool do
  	thirty_two_bit :false
  action [:add, :config]
  end
  
  iis_app "CAM" do
  	path "/CamService"
  	application_pool app_pool
  	physical_path install_dir
  	action :add
  end  
end<commit_msg>Correcting misnamed parameter.<commit_after>#
# Cookbook Name:: wt_cam
# Recipe:: pre
# Author: <NAME>(<<EMAIL>>)
#
# Copyright 2012, Webtrends
#
# All rights reserved - Do Not Redistribute
# This recipe sets up the base configuration for DX

log "Deploy build is #{ENV["deploy_build"]}"
if ENV["deploy_build"] == "true" then 
  #include_recipe "wt_cam::uninstall" 
end


#Properties
install_dir = "#{node['wt_common']['install_dir_windows']}\\CAM"
install_logdir = node['wt_common']['install_log_dir_windows']
app_pool = node['wt_cam']['app_pool']
install_url = "#{node['wt_cam']['url']}#{node['wt_cam']['zip_file']}"

pod = node.chef_environment

iis_site 'Default Web Site' do
	action [:stop, :delete]
end

directory install_dir do
	recursive true
	action :create
end

iis_site 'CAM' do
    protocol :http
    port 80
    path install_dir
	action [:add,:start]
end

if ENV["deploy_build"] == "true" then 
  windows_zipfile install_dir do
    source install_url
    action :unzip	
  end
  
  template "#{install_dir}\\web.config" do
  	source "webConfig.erb"  	
  end
  
  iis_pool app_pool do
  	thirty_two_bit :false
  action [:add, :config]
  end
  
  iis_app "CAM" do
  	path "/CamService"
  	application_pool app_pool
  	physical_path install_dir
  	action :add
  end  
end
{'fraction_non_alphanumeric': 0.12583826429980277, 'fraction_numerical': 0.004733727810650888, 'mean_word_length': 4.4655172413793105, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4022565', 'n_tokens_mistral': 948, 'n_tokens_neox': 914, 'n_words': 237}