Class: Getch::Chroot
Instance Attribute Summary
Attributes inherited from Command
Instance Method Summary collapse
Methods inherited from Command
Constructor Details
This class inherits a constructor from Getch::Command
Instance Method Details
#build_cmd ⇒ Object
93 94 95 96 97 98 99 100 101 |
# File 'lib/getch/command.rb', line 93 def build_cmd dest = OPTIONS[:mountpoint] case OPTIONS[:os] when 'gentoo' "chroot #{dest} /bin/bash -c \"source /etc/profile; #{@cmd}\"" when 'void' "chroot #{dest} /bin/bash -c \"#{@cmd}\"" end end |