8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# File 'lib/ventriloquist/cap/platforms/debian/erlang_install.rb', line 8
def self.erlang_install(machine)
machine.communicate.tap do |comm|
if comm.test('which erl > /dev/null')
machine.env.ui.info("Skipping Erlang installation")
return
end
machine.env.ui.info('Installing Erlang')
path = download_path(comm)
unless comm.test("test -f #{path}")
machine.guest.capability(:download, ERLANG_SOLUTIONS_PKG, path)
end
comm.sudo("dpkg -i #{path}")
comm.sudo('apt-get update')
comm.sudo('apt-get -y install erlang')
end
end
|