lib/sprinkle/installers/deb.rb in sprinkle-0.7.3 vs lib/sprinkle/installers/deb.rb in sprinkle-0.7.4

- old
+ new

@@ -1,9 +1,9 @@ module Sprinkle module Installers # The Deb installer installs deb packages sourced from a remote URL - # + # # == Example Usage # # Installing the magic_beans deb. # # package :magic_beans do @@ -20,16 +20,16 @@ protected def install_commands #:nodoc: [ - "wget -cq --directory-prefix=/tmp #{@packages.join(' ')}", - "dpkg -i #{@packages.collect{|p| "/tmp/#{package_name(p)}"}.join(" ")}" - ] + "wget -cq --directory-prefix=/tmp #{@packages.join(' ')}", + "dpkg -i #{@packages.collect{|p| "/tmp/#{package_name(p)}"}.join(" ")}" + ] end - + private - + def package_name(url) url.split('/').last end end