Sha256: 9530bf1253ecab520a7c6adb83288d8b764d7eeffdf601ef8c3d924202ecc63e

Contents?: true

Size: 607 Bytes

Versions: 4

Compression:

Stored size: 607 Bytes

Contents

module Sprinkle
  module Installers
    # = Custom Installer
    #
    # A really simple installer than just runs any commands
    #
    # == Example Usage
    #
    # Adding a user to passwd
    #
    #   package :deployment_user do
    #     custom 'useradd -d /home/deployer -s /usr/sbin/nologin deployer'
    #   end
    #
    class Custom < Installer
      def initialize(parent, command, &block) #:nodoc:
        options = {:command => command}
        super parent, options, &block
      end

      protected

      def install_commands #:nodoc:
        @options[:command]
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
jemmyw-sprinkle-0.2.3 lib/sprinkle/installers/custom.rb
jemmyw-sprinkle-0.2.4 lib/sprinkle/installers/custom.rb
mdwan-sprinkle-0.2.2 lib/sprinkle/installers/custom.rb
mdwan-sprinkle-0.2.3 lib/sprinkle/installers/custom.rb