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

Version Path
sprinkle-0.4.2 lib/sprinkle/installers/smart.rb
sprinkle-0.4.1 lib/sprinkle/installers/smart.rb
sprinkle-0.4.0 lib/sprinkle/installers/smart.rb
sprinkle-0.3.6 lib/sprinkle/installers/smart.rb
sprinkle-0.3.5 lib/sprinkle/installers/smart.rb
dhill-sprinkle-0.3.3.1 lib/sprinkle/installers/smart.rb
sprinkle-0.3.4 lib/sprinkle/installers/smart.rb
sprinkle-0.3.3 lib/sprinkle/installers/smart.rb
sprinkle-0.3.2 lib/sprinkle/installers/smart.rb
powcloud-sprinkle-0.3.4 lib/sprinkle/installers/smart.rb
powcloud-sprinkle-0.3.0 lib/sprinkle/installers/smart.rb