Merge pull request #3178 from cuberri/fix/master/tinycore-rsync_install

guests/tinycore: add rsync_install capability to tinycore guest
This commit is contained in:
Mitchell Hashimoto 2014-03-12 18:26:08 -07:00
commit 3053d71116
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,14 @@
module VagrantPlugins
module GuestTinyCore
module Cap
class RSync
def self.rsync_install(machine)
machine.communicate.tap do |comm|
# do not sudo tce-load
comm.execute("tce-load -wi rsync")
end
end
end
end
end
end

View File

@ -20,6 +20,11 @@ module VagrantPlugins
require_relative "cap/halt" require_relative "cap/halt"
Cap::Halt Cap::Halt
end end
guest_capability("tinycore", "rsync_install") do
require_relative "cap/rsync"
Cap::RSync
end
end end
end end
end end