Skip to content
Browse files

renamed

  • Loading branch information...
1 parent a1d87f8 commit eca69fa006f5d46ff3dde96a1800a881849b116e @till committed
Showing with 0 additions and 51 deletions.
  1. +0 −51 ohai/files/default/plugins/php_easybib.rb
View
51 ohai/files/default/plugins/php_easybib.rb
@@ -1,51 +0,0 @@
-provides "php_easybib"
-
-php_easybib Mash.new
-
-php_easybib[:php_bin] = `which php`.strip
-
-if not php_easybib[:php_bin].empty?
- php_easybib[:pear_bin] = `which pear`.strip
- php_easybib[:php_extensions] = []
-
- extensions = `#{php_easybib[:php_bin]} -m`.strip.split("\n")
- extensions.each do |line|
- if line.empty? or line[0,1] == '['
- next
- end
-
- php_easybib[:php_extensions].push(line)
- end
-end
-
-if not php_easybib[:pear_bin].empty?
-
- php_easybib[:pear] = {}
- php_easybib[:pear][:bin_dir] = `#{php_easybib[:pear_bin]} config-get bin_dir`.strip
- php_easybib[:pear][:php_dir] = `#{php_easybib[:pear_bin]} config-get php_dir`.strip
-
- channel_out = `#{php_easybib[:pear_bin]} list-channels`.split("\n")
-
- channel_out.shift
- channel_out.shift
- channel_out.shift
- channel_out.pop
-
- php_easybib[:pear_channels] = []
-
- channel_out.each do |line|
- if line[0,4].empty?
- next
- end
-
- l = line.split
- if l[0].nil? || l[1].nil? || l[0].empty? || l[1].empty?
- next
- end
-
- php_easybib[:pear_channels].push({
- :uri => l[0],
- :alias => l[1]
- })
- end
-end

0 comments on commit eca69fa

Please sign in to comment.
Something went wrong with that request. Please try again.