Sha256: c4a71faefccebc6ea443f1e76945bcccf34402272326b99640d8bb1fd7c03955
Contents?: true
Size: 929 Bytes
Versions: 7
Compression:
Stored size: 929 Bytes
Contents
module Bake module Blocks module HasExecuteCommand def executeCommand(commandLine, ignoreStr=nil) puts commandLine if Bake.options.verbose >= 1 puts "(executed in '#{@projectDir}')" if Bake.options.verbose >= 3 cmd_result = false output = "" begin Dir.chdir(@projectDir) do cmd_result, output = ProcessHelper.run([commandLine], true) end rescue Exception=>e puts e.message puts e.backtrace if Bake.options.debug end if (cmd_result == false and (not ignoreStr or not output.include?ignoreStr)) Bake.formatter.printError("Command \"#{commandLine}\" failed", @config) puts "(executed in '#{@projectDir}')" if Bake.options.verbose >= 3 raise SystemCommandFailed.new end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems