All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.backuity.puppet.LocalModule.scala Maven / Gradle / Ivy

package org.backuity.puppet

case class LocalModule(name: String,
                       ref: Git.Ref,
                       isDirty: Boolean,
                       remote : Option[String] = None) {

  lazy val version : Option[Version] = ref match {
    case Git.Branch("master") => Some(Version.Latest)
    case Git.Tag(tag) => Some(Version(tag))
    case _ => None
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy