Class AbstractScriptContext

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Unit tasks(Object first, Object others, Boolean requireSuccess) Adds the provided tasks to the script, by invoking ./gradlew <taskname>.
      • Methods inherited from class org.danilopianini.gradle.git.hooks.ScriptContext

        appendScript, from, from, from, from, getName, getScript, tasks, tasks, tasks
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractScriptContext

        AbstractScriptContext()
    • Method Detail

      • tasks

         final Unit tasks(Object first, Object others, Boolean requireSuccess)

        Adds the provided tasks to the script, by invoking ./gradlew <taskname>. By default, a failure of the task implies a failure of the commit. To run a task without considering the failure critical, pass [requireSuccess] = false.