lib/oats/user_api.rb in oats-0.1.0 vs lib/oats/user_api.rb in oats-0.1.1

- old
+ new

@@ -181,10 +181,10 @@ return $oats['result_archive_dir'] if $oats['result_archive_dir'] oats_data = $oats oats_data['execution']['dir_results'] = Util.expand_path(oats_data['execution']['dir_results']) oats_data['result_archive_dir'] = oats_data['execution']['dir_results'] + '_archive' if $oats_execution['agent'] - agent_nickname = Ragent.occ['agent_nickname'] + agent_nickname = OatsAgent::Ragent.occ['agent_nickname'] if oats_data['execution']['dir_results'] !~ /#{agent_nickname}$/ # Should move to a better place.This is unrelated to results, Just picking up the agent file. agent_ini_file = File.join(ENV['HOME'], agent_nickname + '_oats.yml') oats_data = OatsData.load(agent_ini_file,oats_data) if File.exist?(agent_ini_file) oats_data['result_archive_dir'] += '/' + agent_nickname