Remove sync TO folder for unison prior to setting up cron
This commit is contained in:
parent
97f82d7140
commit
03262b0a04
|
@ -69,6 +69,8 @@ module Vagrant
|
|||
:options => config.unison.options,
|
||||
:script => config.unison.script,
|
||||
:log_file => (config.unison.log_file % sanitized_string))
|
||||
|
||||
ssh.exec!("sudo rm -rf #{opts[:original][:guestpath]}")
|
||||
ssh.exec!("sudo echo \"#{crontab_entry}\" >> #{config.unison.crontab_entry_file}")
|
||||
ssh.exec!("crontab #{config.unison.crontab_entry_file}")
|
||||
end
|
||||
|
|
|
@ -92,6 +92,11 @@ class LinuxSystemTest < Test::Unit::TestCase
|
|||
@instance.create_unison(@ssh, @options)
|
||||
end
|
||||
|
||||
should "remove the original guestpath" do
|
||||
@ssh.expects(:exec!).with("sudo rm -rf #{@options[:original][:guestpath]}")
|
||||
@instance.create_unison(@ssh, @options)
|
||||
end
|
||||
|
||||
should "enable the crontab file" do
|
||||
@ssh.expects(:exec!).with("crontab #{@mock_env.config.unison.crontab_entry_file}")
|
||||
@instance.create_unison(@ssh, @options)
|
||||
|
|
Loading…
Reference in New Issue