Sha256: ed0af3cc52b052c5d9ebf52a65cd8954bef7a40cde10e4e8401cd5efda1c6670
Contents?: true
Size: 687 Bytes
Versions: 5
Compression:
Stored size: 687 Bytes
Contents
module VagrantPlugins module Vmpooler module Action class DisableTty def initialize(app, env) @app = app @logger = Log4r::Logger.new("vagrant_vmpooler::action::disable_tty") end def call(env) ssh_info = env[:machine].ssh_info os_flavor = env[:machine].provider_config.os disable_tty_command = "sed -i 's/^Defaults\s*requiretty/#Defaults requiretty/' /etc/sudoers" # i18n env[:ui].info(I18n.t("vagrant_vmpooler.disable_tty")) env[:machine].communicate.execute(disable_tty_command, :error_check => true) @app.call(env) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems