def set_vars_to_stage(stage, variables)
      # convert to array using VAR=value
      vars_array = variables.map{|k,v| "#{k}=#{v}" }
      Capistrano::Application.invoke(stage)
      Capistrano::Application.invoke("rbenv:vars:set", *vars_array)
    end
def set_vars_to_stage(stage, variables)
      # convert to array using VAR=value
      vars_array = variables.map{|k,v| "#{k}=#{v}" }
      Capistrano::Application.invoke(stage)
      Capistrano::Application.invoke("rbenv:vars:set", *vars_array)
    end
Sets the variables to the selected stage using cap rbenv set