lib/getch/void/terraform.rb in getch-0.5.0 vs lib/getch/void/terraform.rb in getch-0.7.0
- old
+ new
@@ -1,25 +1,29 @@
+# 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 = 'sudo'
+ @pkgs = @deps.dup
@pkgs << ' vim'
@pkgs << ' iptables'
@pkgs << ' runit-iptables'
@pkgs << ' iwd'
@pkgs << ' dhcpcd'
- @pkgs << ' lvm2' if OPTIONS[:fs] == 'lvm'
+ @pkgs << ' lvm2' if OPTIONS[:lvm]
@pkgs << ' zfs' if OPTIONS[:fs] == 'zfs'
@pkgs << ' cryptsetup' if OPTIONS[:encrypt]
Install.new(@pkgs)
end
end