Sha256: 6c3441e2e176a5626057c28dba16c042709cc9dab50ff424ef4effd29c098131
Contents?: true
Size: 642 Bytes
Versions: 11
Compression:
Stored size: 642 Bytes
Contents
module Sprinkle module Installers class Smart < Installer attr_accessor :packages #:nodoc: def initialize(parent, packages, &block) #:nodoc: super parent, &block packages = [packages] unless packages.is_a? Array @packages = packages end protected def install_commands #:nodoc: "smart install #{@packages.join(' ')} -y 2>&1 | tee -a /var/log/smart-sprinkle" end end end end module Sprinkle module Package class Package def smart(*names, &block) @installer = Sprinkle::Installers::Smart.new(self, *names, &block) end end end end
Version data entries
11 entries across 11 versions & 3 rubygems