lib/sprinkle/installers/apt.rb in sprinkle-0.5.2 vs lib/sprinkle/installers/apt.rb in sprinkle-0.6.0
- old
+ new
@@ -29,10 +29,12 @@
class Apt < PackageInstaller
def initialize(parent, *packages, &block) #:nodoc:
super parent, *packages, &block
@options.reverse_merge!(:dependencies_only => false)
end
+
+ attributes :dependencies_only
auto_api
verify_api do
def has_apt(package)
@@ -42,11 +44,11 @@
protected
def install_commands #:nodoc:
command = @options[:dependencies_only] ? 'build-dep' : 'install'
- noninteractive = "env DEBCONF_TERSE='yes' DEBIAN_PRIORITY='critical' DEBIAN_FRONTEND=noninteractive"
- "#{noninteractive} #{sudo_cmd}apt-get --force-yes -qyu #{command} #{@packages.join(' ')}"
+ noninteractive = "#{sudo_cmd}env DEBCONF_TERSE='yes' DEBIAN_PRIORITY='critical' DEBIAN_FRONTEND=noninteractive"
+ "#{noninteractive} apt-get --force-yes -qyu #{command} #{@packages.join(' ')}"
end
end
end
end