lib/grape.rb
def remote_sh(cmd)
    @busy = true

    puts cmd.inspect
    begin
      res = `ssh -i #{KEY} #{@client} "#{cmd}"` # todo, allow for failure
    rescue
      return 1
    end
    @busy = false
    res # need to return result
  end
# Run commands remotely, returns exit status
Run commands remotely, returns exit status
Run commands remotely returns exit status
def remote_sh(cmd)
    @busy = true
    puts cmd.inspect
    begin
      res = `ssh -i #{KEY} #{@client} "#{cmd}"` 
    rescue
      return 1
    end
    @busy = false
    res 
  end
def remote_sh ( cmd ) @busy = true puts cmd . inspect begin res = ` ssh -i  #{ KEY } #{ @client }  " #{ cmd } " ` rescue return 1 end @busy = false res end
Run commands remotely, returns exit status
Run commands remotely returns exit status
# todo, allow for failure # need to return result
cmd