#------------------------------------------------------------
# Copyright (C) 2006 RoyaltyShare, Inc.   All Rights Reserved
# $Id$
#------------------------------------------------------------
package RPS::Mechanical::CA::Job::CreateCMRRASummaryReportExcel;

use strict;
use warnings;

use Sys::Hostname;

use lib '/app/tools/common/lib';
use Common::Log;
use Common::Assert;
use Common::RSApp;

use lib '/app/tools/rps/lib';
use RPS::Config;

use lib '/app/tools/job/lib';
use Job::Job;

use base 'Job::Job';

use constant kJobClass    => 'CMRRASummaryReport';
use constant kLogBasePath => '/app/data/royalty_logs/';

sub _generateCommandLine {
    my ($self) = @_;

    my $runID = $self->getCommandLineArg('runID');
    assert($runID);

    my $filePath = $self->getCommandLineArg('filePath');
    assert($filePath);

    my $clientID = $self->clientID();

    my $config     = RPS::Config->new();
    my $scriptPath = $config->get('report_script_dir');

    my $commandLine = "nice $scriptPath/createCAMechanicalSummaryReportExcel.pl -c $clientID -r $runID -p $filePath";
    return $commandLine;
}

sub _defaultClass    { return 'RunUtility'; }
sub _defaultSubclass { return 'CMRRASummaryReport'; }

###
1;    #
###
