Sha256: 952e4c85157177a42eb284fc97ca905b1f2fa9142ece288d30c94b07f6c7eacb
Contents?: true
Size: 628 Bytes
Versions: 1
Compression:
Stored size: 628 Bytes
Contents
# frozen_string_literal: true module PsmDeadSimpleDeploymentTools # include PsmDeadSimpleDeploymentTools::Packages # in order to manipulate files module Packages # nodoc class AptManager include Utils::RunCommandAsSudo def install_packages(*packages) update_repositories run_command_as_sudo("apt-get install -y #{packages.join(" ")}") end def remove_packages(*packages) run_command_as_sudo("apt-get remove -y #{packages.join(" ")}") end private def update_repositories run_command_as_sudo("apt-get update") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
psm_dead_simple_deployment_tools-0.1.1 | lib/psm_dead_simple_deployment_tools/packages/apt_manager.rb |