This file contains 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.sonatype.nexus.repository.storage.StorageFacet; | |
import org.sonatype.nexus.repository.storage.Query; | |
import org.joda.time.DateTime; | |
import org.joda.time.format.DateTimeFormat; | |
def fmt = DateTimeFormat.forPattern('yyyy-MM-dd HH:mm:ss'); | |
[ | |
'releases' | |
].each { reponame -> | |
// Get a repository |
This file contains 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
/* | |
simple text emails | |
looks for environment variables for the Mandrill credentials, as on Heroku for instance | |
if not found, checks a prop file | |
*/ | |
import org.apache.commons.mail.*; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.InputStream; |
This file contains 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
system ~/projects/joe $ cat pingpong.rb | |
require 'target/joe-1.0-SNAPSHOT.jar' | |
com.headius.joe.JoeLibrary.new.load(JRuby.runtime, false) | |
# pinger ponger printer | |
def pinger(c) | |
20.times do | |
c << 'ping' | |
end |