Sha256: 6551bff2d74f872bef14443ba0bb2fd1362946a2f325ccd471ecbb6781b4eacf

Contents?: true

Size: 463 Bytes

Versions: 8

Compression:

Stored size: 463 Bytes

Contents

# frozen_string_literal: true

module Getch
  module Void
    class Finalize
      def initialize
        x
      end

      protected

      def x
        shell
        accounts
      end

      private

      # Make the default shell /bin/bash instead of /bin/sh
      def shell
        Chroot.new('chsh -s /bin/bash')
      end

      def accounts
        account = Config::Account.new
        account.root
        account.new_user
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
getch-0.7.3 lib/getch/void/finalize.rb
getch-0.7.0 lib/getch/void/finalize.rb
getch-0.5.0 lib/getch/void/finalize.rb
getch-0.3.6 lib/getch/void/finalize.rb
getch-0.3.5 lib/getch/void/finalize.rb
getch-0.3.4 lib/getch/void/finalize.rb
getch-0.3.3 lib/getch/void/finalize.rb
getch-0.3.0 lib/getch/void/finalize.rb