Sha256: b41cb326598d4a7a789b590050b13e6511e204f4a4a2c6692a2f5ec8662e9e3a
Contents?: true
Size: 1.1 KB
Versions: 8
Compression:
Stored size: 1.1 KB
Contents
require "git" require "fileutils" require "pathname" require "ssh-base-cmd-class" class RemoteInit def do (publicIp, privateKey) cmd1 = "yum -y install git" cmd2 = "(rm -rf ecosystem-catalog && git clone https://gitlab.com/canzea/ecosystem-catalog.git)" cmd3 = 'find /root/ecosystem-catalog -name "*.sh" -exec chmod +x {} +' cmd4 = '(cd /root/ecosystem-catalog && ./roles/workarounds/ruby/install.sh)' cmd5 = '(cd /root/ecosystem-catalog && ./roles/workarounds/ruby-gems/install.sh)' cmd6 = '(cd /root/ecosystem-catalog && ./roles/workarounds/sshd/configure.sh)' cmd7 = '(cd /root/ecosystem-catalog && ./roles/workarounds/sshd/enable.sh)' remote = RemoteCall.new remote.exec publicIp, privateKey, cmd1 remote.exec publicIp, privateKey, cmd2 remote.exec publicIp, privateKey, cmd3 remote.exec publicIp, privateKey, cmd4 remote.exec publicIp, privateKey, cmd5 remote.exec publicIp, privateKey, cmd6 remote.exec publicIp, privateKey, cmd7 remote.exec publicIp, privateKey, cmd8 end end
Version data entries
8 entries across 8 versions & 1 rubygems