Sha256: d4aed18e85658dc7922048067fa1cf834f6c4a1ca8ae3c6d00f9efc61837b8a4

Contents?: true

Size: 626 Bytes

Versions: 3

Compression:

Stored size: 626 Bytes

Contents

# frozen_string_literal: true

module Getch
  module Void
    # install dependencies packages
    class Terraform
      def initialize
        @deps = 'sudo'
        x
      end

      protected

      def x
        install_pkgs
      end

      def install_pkgs
        @pkgs = @deps.dup
        @pkgs << ' vim'
        @pkgs << ' iptables'
        @pkgs << ' runit-iptables'
        @pkgs << ' iwd'
        @pkgs << ' dhcpcd'
        @pkgs << ' lvm2' if OPTIONS[:lvm]
        @pkgs << ' zfs' if OPTIONS[:fs] == 'zfs'
        @pkgs << ' cryptsetup' if OPTIONS[:encrypt]
        Install.new(@pkgs)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
getch-0.11.0 lib/getch/void/terraform.rb
getch-0.7.3 lib/getch/void/terraform.rb
getch-0.7.0 lib/getch/void/terraform.rb