Sha256: 05af34607a6dc4f5bbe2ffd603f667d64dfec356f1377e2b204b4a2f65aaedec
Contents?: true
Size: 1.2 KB
Versions: 2
Compression:
Stored size: 1.2 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)' cmd8 = '(cd /root/ecosystem-catalog && ./roles/workarounds/image-bootstrap/configure.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
canzea-0.1.66 | lib/commands/remote-bootstrap.rb |
canzea-0.1.64 | lib/commands/remote-bootstrap.rb |