mirror of
https://github.com/corda/corda.git
synced 2025-06-17 14:48:16 +00:00
Added CordaCon to node startup banner
This commit is contained in:
@ -3,12 +3,12 @@ package net.corda.node.internal
|
||||
import com.jcabi.manifests.Manifests
|
||||
import com.typesafe.config.ConfigException
|
||||
import joptsimple.OptionException
|
||||
import net.corda.core.*
|
||||
import net.corda.core.crypto.commonName
|
||||
import net.corda.core.crypto.orgName
|
||||
import net.corda.core.internal.*
|
||||
import net.corda.node.VersionInfo
|
||||
import net.corda.core.node.services.ServiceInfo
|
||||
import net.corda.core.then
|
||||
import net.corda.core.thenMatch
|
||||
import net.corda.core.utilities.loggerFor
|
||||
import net.corda.node.*
|
||||
import net.corda.node.serialization.NodeClock
|
||||
@ -28,6 +28,7 @@ import java.lang.management.ManagementFactory
|
||||
import java.net.InetAddress
|
||||
import java.nio.file.Path
|
||||
import java.nio.file.Paths
|
||||
import java.time.LocalDate
|
||||
import java.util.*
|
||||
import kotlin.system.exitProcess
|
||||
|
||||
@ -303,6 +304,12 @@ open class NodeStartup(val args: Array<String>) {
|
||||
"Top tip: never say \"oops\", instead\nalways say \"Ah, Interesting!\"",
|
||||
"Computers are useless. They can only\ngive you answers. -- Picasso"
|
||||
)
|
||||
|
||||
// TODO: Delete this after CordaCon.
|
||||
val cordaCon2017date = LocalDate.of(2017, 9, 12)
|
||||
val cordaConBanner = if (LocalDate.now() < cordaCon2017date)
|
||||
"${Emoji.soon} Register for our Free CordaCon event : see https://goo.gl/Z15S8W" else ""
|
||||
|
||||
if (Emoji.hasEmojiTerminal)
|
||||
messages += "Kind of like a regular database but\nwith emojis, colours and ascii art. ${Emoji.coolGuy}"
|
||||
val (msg1, msg2) = messages.randomOrNull()!!.split('\n')
|
||||
@ -316,6 +323,8 @@ open class NodeStartup(val args: Array<String>) {
|
||||
a("--- ${versionInfo.vendor} ${versionInfo.releaseVersion} (${versionInfo.revision.take(7)}) -----------------------------------------------").
|
||||
newline().
|
||||
newline().
|
||||
a(cordaConBanner).
|
||||
newline().
|
||||
reset())
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user