Skip to content

Commit

Permalink
implementando funcao em Ruby para pegar o numero da ultima versao do …
Browse files Browse the repository at this point in the history
…ZF direto da pagina da Zend \o/
  • Loading branch information
Leonardo Thibes committed Jan 23, 2014
1 parent 910ac94 commit 7d49032
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/puppet/parser/functions/get_last_ver.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module Puppet::Parser::Functions
newfunction(:get_last_ver, :type => :rvalue) do |args|
require 'open-uri'
url = 'http://framework.zend.com/api/zf-version?v=' + args[0]
return open(url).read
end
end

0 comments on commit 7d49032

Please sign in to comment.