This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package models.error | |
| import org.scalactic._ | |
| import scala.concurrent.{ExecutionContext, Future} | |
| import org.scalactic.Accumulation._ | |
| import scala.util.Success | |
| trait Error |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sealed trait IOToolResponse[+A] { | |
| def flatMap[B](f: A => IOToolResponse[B]): IOToolResponse[B] = this match { | |
| case Authenticated(a) => f(a) | |
| case na: NotAuthenticated => na | |
| } | |
| def map[B](f: A => B): IOToolResponse[B] = this.flatMap(a => IOToolResponse.unit(f(a))) | |
| } | |
| object IOToolResponse { | |
| def unit[A](a: A): IOToolResponse[A] = Authenticated(a) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.gradle.api.NamedDomainObjectContainer | |
| import org.gradle.api.Plugin | |
| import org.gradle.api.Project | |
| import org.gradle.api.DefaultTask | |
| import org.gradle.api.tasks.TaskAction | |
| import liquibase.integration.commandline.Main | |
| apply plugin: LiquibasePlugin | |
| buildscript { |