Sha256: 1a88e1cae7b257f3accd79150a8afdfd4655c35b713bbdcbc33b3c7b38e2eb4f
Contents?: true
Size: 1.25 KB
Versions: 3
Compression:
Stored size: 1.25 KB
Contents
# encoding: utf-8 require 'fedux_org_stdlib/require_files' require_library %w{ command_exec } require 'fedux_org_stdlib/logging/logger' module FeduxOrgStdlib module Project module Generators class Taskjuggler def generate_report(directory, plan) FeduxOrgStdlib::Project.logger.debug "Start generating report." begin command = CommandExec::Command.new(:tj3 , :parameter => "-o #{directory} #{plan}", :error_detection_on => [:return_code], :error_indicators => { :allowed_return_code => [0], }, :on_error_do => :raise_error, ) command.run rescue CommandExec::Exceptions::CommandExecutionFailed FeduxOrgStdlib::Project.logger.fatal "Failed to generate report:\n\n#{ command.result.stderr.join( "\n" ) }" exit 1 end FeduxOrgStdlib::Project.logger.info "Generating report succeeded." end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems