Class: VagrantPlugins::TimeZone::Cap::Gentoo
- Defined in:
- lib/vagrant-timezone/cap/gentoo.rb
Overview
Gentoo capabilities for changing time zone
Class Method Summary collapse
-
.change_timezone_generic(machine, timezone) ⇒ Object
Set the time zone if ‘timedatectl` is not found.
Methods inherited from Linux
change_timezone, change_timezone_timedatectl, timedatectl?
Class Method Details
.change_timezone_generic(machine, timezone) ⇒ Object
Set the time zone if ‘timedatectl` is not found
9 10 11 12 13 14 15 16 |
# File 'lib/vagrant-timezone/cap/gentoo.rb', line 9 def self.change_timezone_generic(machine, timezone) machine.communicate.tap do |comm| super comm.sudo("echo '#{timezone}' > /etc/timezone") comm.sudo('emerge --config timezone-data') end end |