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
| [ERROR] [03/01/2017 13:31:24.] | |
| [blackwing-akka.remote.default-remote-dispatcher-6] | |
| [akka.tcp://blackwing@192.168.10.: | |
| 41634/system/endpointManager/endpointWriter-akka.tcp%3A%2F%2FRemoteDatabase%40192.168.160.2%3A2558-3] | |
| AssociationError | |
| [akka.tcp://blackwing@192.168.10.131:] <- [akka.tcp://RemoteDatabase@192.168.160.2:]: | |
| Error [scala.Tuple4; local | |
| class incompatible: stream classdesc serialVersionUID = -3284039410903489814, local class serialVersionUID = -3999741010374250998] [ |
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
| error: | |
| Error: Failed to apply catalog: Cannot alias File[/home//.ammonite] to ["/home/.ammonite"] at /opt/puppet/modules/sb_a | |
| mmonite/manifests/sb_ammonite.pp:55; resource ["File", "/home/.ammonite"] already declared at /opt/puppet/modules/sb_a | |
| mmonite/manifests/sb_ammonite.pp:100 | |
| init.pp: | |
| $users = [ |
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
| def getSysProperty(prop: String) = try { | |
| val result = System.getProperty(prop) == null match { | |
| case true => throw new Exception("no such property") | |
| case _ => System.getProperty(prop) | |
| } | |
| } |
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
| def loadMyCmds(): Unit = { | |
| try { | |
| } catch { | |
| e: Exception => println("woops") | |
| } | |
| } | |
| => ammonite.repl.CompilationError: <console>:5: '}' expected but '(' found. |
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 java.io.File | |
| import scala.collection.JavaConverters._ | |
| import java.net._ | |
| object fileHelpers { | |
| def getFileTree(f: File): Stream[File] =f #:: { | |
| if (f.isDirectory) { | |
| f. | |
| listFiles(). |
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
| def getPort(p: Int): Boolean={ | |
| try { | |
| val tmp = new ServerSocket(p) | |
| tmp.close() | |
| return true | |
| } catch { | |
| case e: BindException => return false | |
| } | |
| } |
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
| file { '/opt/test/': | |
| ensure => 'directory', | |
| mode => 0755, | |
| owner => "cmadmin", | |
| group => "cmadmin", | |
| } | |
| vcsrepo { '/opt/test': | |
| require => file['/opt/test/'], | |
| ensure => present, |
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
| fact users = ["user1", "user2", "user3" ] | |
| #$users.each |String $user| { | |
| # notify ("$user") | |
| #} | |
| define test { | |
| notify($name) |
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
| file { '/opt/target/': | |
| ensure => 'directory', | |
| mode => 0755, | |
| } | |
| class repo_go { | |
| vcsrepo { '/opt/target': | |
| force => true , | |
| require => '/opt/target/', | |
| ensure => present, |
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
| include test_module | |
| class test { | |
| notify { "hello": } | |
| world { '' : } | |
| } |
NewerOlder