class MacSetup::SecretsInstaller

Public Class Methods

new(status) click to toggle source
# File lib/mac_setup/secrets_installer.rb, line 7
def initialize(status)
  @status = status
end
run(_config, status) click to toggle source
# File lib/mac_setup/secrets_installer.rb, line 3
def self.run(_config, status)
  new(status).run
end

Public Instance Methods

install_crypto() click to toggle source
# File lib/mac_setup/secrets_installer.rb, line 16
def install_crypto
  Shell.run("brew install #{SECRETS::CRYPTO_LIB}") unless @status.installed_formulas.include?(CRYPTO_LIB)
end
run() click to toggle source
# File lib/mac_setup/secrets_installer.rb, line 11
def run
  install_crypto
  Secrets.decrypt(@status.git_changes(:dotfiles))
end