aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike McQuaid2015-02-12 10:26:19 +0000
committerMike McQuaid2015-02-12 10:26:19 +0000
commit8d98ed209f7d4d722ebfa462614fd7fe3f888760 (patch)
treee71db248514527b22b809417ade48cb399e9858b /Library/Formula
parentf0f622703d82ed6a27153ea86e9d4238ace0af63 (diff)
downloadhomebrew-8d98ed209f7d4d722ebfa462614fd7fe3f888760.tar.bz2
Revert "kettle 5.0.1"
This reverts commit 15b1541a0afeef26002a5ee0c4b0c8b1255efbf8.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/kettle.rb104
1 files changed, 0 insertions, 104 deletions
diff --git a/Library/Formula/kettle.rb b/Library/Formula/kettle.rb
deleted file mode 100644
index 00bee7ac9..000000000
--- a/Library/Formula/kettle.rb
+++ /dev/null
@@ -1,104 +0,0 @@
-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["*"]
-
- (var + "log/kettle").mkpath
- (etc + "kettle/simple-jndi").mkpath
-
- # We don't assume that kitchen and pan are in anyway unique command names so we'll prepend "pdi"
- %w[kitchen pan].each do |command|
- wrapper_file = libexec + command
- wrapper_file.write command_wrapper_file_content(command)
- chmod 0755, wrapper_file
- bin.install_symlink wrapper_file => "pdi#{command}"
- end
-
- carte_password_config_file = etc + "kettle/pwd/kettle.pwd"
- carte_password_config_file.write carte_password_config_content unless carte_password_config_file.exist?
-
- carte_server_config_file = etc + "kettle/carte.xml"
- carte_server_config_file.write carte_server_config_content unless carte_server_config_file.exist?
- end
-
- def command_wrapper_file_content(command); <<-EOS.undent
- #!/bin/bash
-
- cd /usr/local/opt/kettle/libexec/
- ./#{command}.sh "$@"
- EOS
- end
-
- def carte_password_config_content; <<-EOS.undent
- cluster:cluster
- EOS
- end
-
- def carte_server_config_content; <<-EOS.undent
- <?xml version="1.0" encoding="UTF-8"?>
- <slave_config>
- <!-- Uncomment to specify a local repository -->
- <!--
- <repository>
- <name>FOO</name>
- </repository>
- -->
- <slaveserver>
- <name>localhost</name>
- <hostname>localhost</hostname>
- <port>8080</port>
- <username>cluster</username>
- <password>cluster</password>
- <master>N</master>
- </slaveserver>
- </slave_config>
- EOS
- 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>#{opt_libexec}/carte.sh</string>
- <string>#{etc}/kettle/carte.xml</string>
- </array>
- <key>WorkingDirectory</key>
- <string>#{etc}/kettle</string>
- <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
-
- def caveats; <<-EOS.undent
- The `kitchen` and `pan` scripts have been installed
- under the names `pdikitchen` and `pdipan`.
- EOS
- end
-
- test do
- %w[pdikitchen pdipan].each do |command|
- assert_equal "6", shell_output("#{bin}/#{command} -version > /dev/null 2>&1; echo $?").strip
- end
- end
-end