summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanielsdeleo <dan@opscode.com>2013-08-02 12:52:47 -0700
committerdanielsdeleo <dan@opscode.com>2013-08-02 12:52:47 -0700
commit6497db0ac1abf68419bead6890f2dc41fe2bb552 (patch)
treee99571355e0cb9e269445ba8589c30babc02edc8
parentf798b26afed4ab8366dc2c9d722846c87491a488 (diff)
downloadchef-6497db0ac1abf68419bead6890f2dc41fe2bb552.tar.gz
Add inline doc for private apt package method
-rw-r--r--lib/chef/provider/package/apt.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/chef/provider/package/apt.rb b/lib/chef/provider/package/apt.rb
index 6dcc0acad7..4e9a0cff01 100644
--- a/lib/chef/provider/package/apt.rb
+++ b/lib/chef/provider/package/apt.rb
@@ -118,6 +118,9 @@ class Chef
private
+ # Runs command via shell_out with magic environment to disable
+ # interactive prompts. Command is run with default localization rather
+ # than forcing locale to "C", so command output may not be stable.
def run_noninteractive(command)
shell_out!(command, :env => { "DEBIAN_FRONTEND" => "noninteractive", "LC_ALL" => nil })
end