lib/grape.rb
def has_file?(f)
    cmd = %{
      if [ -e #{f} ]
      then
        exit 0
      else
        exit 1
      fi
    }
    `ssh -i cluster.key #{@client} \"#{cmd}\"`
    $?.exitstatus
  end
# true/false if client has file
true/false if client has file
true / false if client has file
def has_file?(f)
    cmd = %{
      if [ -e #{f} ]
      then
        exit 0
      else
        exit 1
      fi
    }
    `ssh -i cluster.key #{@client} \"#{cmd}\"`
    $?.exitstatus
  end
def has_file? ( f ) cmd = %{
      if [ -e #{f} ]
      then
        exit 0
      else
        exit 1
      fi
    } ` ssh -i cluster.key  #{ @client } \" #{ cmd } \" ` $? . exitstatus end
true/false if client has file
true / false if client has file
f