class VPS::CLI::Playbook::State::SSHMock
Public Instance Methods
exec!(command)
click to toggle source
# File lib/vps/cli/playbook/state.rb, line 8 def exec!(command) case command when "cat /etc/lsb-release" <<-LSB DISTRIB_ID=Ubuntu DISTRIB_RELEASE=18.04 DISTRIB_CODENAME=bionic DISTRIB_DESCRIPTION="Ubuntu 18.04.2 LTS" LSB when "pwd" "/home/myapp" else raise "Encountered unexpected command: #{command}" end end