diff options
| author | Joshua Rutherford | 2015-02-11 12:09:16 -0500 |
|---|---|---|
| committer | Mike McQuaid | 2015-02-13 10:54:49 +0000 |
| commit | 1eb09ec45132830ef8f171ec78dfce4694f3298e (patch) | |
| tree | 29889addc8160c413ad8f311ff7142a6d54128fa | |
| parent | 1174bc3c4a84f9394ef70126141bd276d91a61d2 (diff) | |
| download | homebrew-1eb09ec45132830ef8f171ec78dfce4694f3298e.tar.bz2 | |
kettle 5.0.1 (new formula)
Add Pentaho Kettle (PDI) formula
Closes #36743.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
| -rw-r--r-- | Library/Formula/kettle.rb | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/Library/Formula/kettle.rb b/Library/Formula/kettle.rb new file mode 100644 index 000000000..404b030d2 --- /dev/null +++ b/Library/Formula/kettle.rb @@ -0,0 +1,55 @@ +class Kettle < Formula + homepage "http://community.pentaho.com/projects/data-integration/" + url "https://downloads.sourceforge.net/project/pentaho/Data%20Integration/5.0.1-stable/pdi-ce-5.0.1-stable.zip" + sha1 "c34fa3dbe8b75280fd3f7ddcaf609acbcdd2ed78" + + def install + rm_rf Dir["*.{bat}"] + libexec.install Dir["*"] + + (etc+"kettle").install libexec+"pwd/carte-config-master-8080.xml" => "carte-config.xml" + (etc+"kettle/.kettle").install libexec+"pwd/kettle.pwd" + (etc+"kettle/simple-jndi").mkpath + + (var+"log/kettle").mkpath + + # We don't assume that carte, kitchen or pan are in anyway unique command names so we'll prepend "pdi" + %w[carte kitchen pan].each do |command| + (bin+"pdi#{command}").write_env_script libexec+"#{command}.sh", :BASEDIR => libexec + end + end + + def plist; <<-EOS.undent + <?xml version="1.0" encoding="UTF-8"?> + <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" + "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> + <plist version="1.0"> + <dict> + <key>Label</key> + <string>#{plist_name}</string> + <key>ProgramArguments</key> + <array> + <string>#{bin}/pdicarte</string> + <string>#{etc}/kettle/carte-config.xml</string> + </array> + <key>EnvironmentVariables</key> + <dict> + <key>KETTLE_HOME</key> + <string>#{etc}/kettle</string> + </dict> + <key>StandardOutPath</key> + <string>#{var}/log/kettle/carte.log</string> + <key>StandardErrorPath</key> + <string>#{var}/log/kettle/carte.log</string> + <key>RunAtLoad</key> + <true/> + </dict> + </plist> + EOS + end + + test do + system "#{bin}/pdikitchen", "-file=#{libexec}/samples/jobs/Slowly\ Changing\ Dimension/create\ -\ populate\ -\ update\ slowly\ changing\ dimension.kjb", "-level=RowLevel" + system "#{bin}/pdipan", "-file=#{libexec}/samples/transformations/Encrypt\ Password.ktr", "-level=RowLevel" + end +end |
