lib/poise_boiler/helpers/rake/travis.rb
# Decorate a Rake subtask for Travis.
#
# @param name [String] Task to run.
# @return [void]
Decorate a Rake subtask for Travis.
Decorate a Rake subtask for Travis .
def run_subtask(name)
          travis_timer do
            begin
              shell.say("Running task #{name}")
              task(name).invoke
              shell.say("Task #{name} succeeded.", :green)
            rescue StandardError => ex
              (@failed ||= []) << name
              shell.say("Task #{name} failed with #{ex}:", :red)
              travis_fold "#{name}.backtrace" do
                shell.say(ex.backtrace.map{|line| '  '+line }.join("\n"), :red)
              end
            end
          end
        end
def run_subtask ( name ) travis_timer do begin shell . say ( "Running task #{name}" ) task ( name ) . invoke shell . say ( "Task #{name} succeeded." , :green ) rescue StandardError => ex ( @failed ||= [ ] ) << name shell . say ( "Task #{name} failed with #{ex}:" , :red ) travis_fold "#{name}.backtrace" do shell . say ( ex . backtrace . map { | line | '  ' + line } . join ( "\n" ) , :red ) end end end end
Decorate a Rake subtask for Travis.
Decorate a Rake subtask for Travis .
None
void
name
Task to run.
Task to run .