Package 

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
      abstract String getName() Hook name.
      abstract String getScript() Script content.
      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.AbstractScriptContext

        appendScript, from, from, from, 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

      • getScript

         abstract String getScript()

        Script content. To be fetched only when the configuration is complete.

      • 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.