class PushTextToPublicGist

Public Class Methods

push(text,username,password,gistId,fileName) click to toggle source
# File lib/pushTextToGist.rb, line 5
def self.push(text,username,password,gistId,fileName)
  options={}
  options[:username]=username
  options[:password]=password
  Gist.login!(options)
  options1={}
  options1[:update]=gistId
  options1[:filename]=fileName
  Gist.gist( text , options1 )
end