Sha256: 9fecb999da346f87997c64643e501cfee0aad7ab167ea41be71a1915489b77b1

Contents?: true

Size: 339 Bytes

Versions: 3

Compression:

Stored size: 339 Bytes

Contents

module Sprinkle
  module Installers
    class User < Installer
      def initialize(package, username, options, &block)
        super package, &block
        @username = username
        @options = options
      end
      protected 
      def install_commands
        "adduser #{@options[:flags]} #{@username}"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sprinkle-0.4.2 lib/sprinkle/installers/user.rb
sprinkle-0.4.1 lib/sprinkle/installers/user.rb
sprinkle-0.4.0 lib/sprinkle/installers/user.rb