Chef Recipe - _setup_4_neocron.rb
Chef::Log.info('*** start neocron')

::Chef::Recipe.send(:include, TFAWSCommon::Functions)

app_short_name = get_opsworks_app_name
search_criteria = "shortname:#{app_short_name}"
Chef::Log.info("Searching for app #{search_criteria}")
app = search("aws_opsworks_app","#{search_criteria}").first

# directory should already exist
directory "#{node['tf_scms']['cf_home']}/lib" do
  recursive true
end

template "#{node['tf_scms']['cf_home']}/lib/neo-cron.xml" do
  if app['environment']['layer'] == 'commerce'
    source 'commerce-neo-cron.xml.erb'
  elsif app['environment']['layer'] == 'admin'
    source 'admin-neo-cron.xml.erb'
  else
    Chef::Log.fatal("********** Unknown layer ********** ")
  end
end

Chef::Log.info('*** stop neocron')

_common_set_attributes   _setup_1_cfstop   _setup_2_jvmconfig   _setup_3_neodatasource   _setup_4_neocron   _setup_5_cfstart   COLDFUSION INTERFACING WITH AWS