Sha256: 3bcd0884b21dbd1c12bd807bd5813a71079ae682b3104677e02bc56e97acdd0b
Contents?: true
Size: 1.05 KB
Versions: 8
Compression:
Stored size: 1.05 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 end end
Version data entries
8 entries across 8 versions & 1 rubygems