Skip to content

Instantly share code, notes, and snippets.

@tjlee
Last active December 17, 2015 15:39
Show Gist options
  • Save tjlee/5633218 to your computer and use it in GitHub Desktop.
Save tjlee/5633218 to your computer and use it in GitHub Desktop.
Ruby methods to work with TFS
def check_out()
output = `tf @./tfs_scripts/checkout.tfs #{@tfs_path} #{@user} #{@domen} #{@password}`
end
def check_in()
output = `tf @./tfs_scripts/checkin.tfs`
return output[/#(\d+)/].delete("#") # removing hash to return change set number
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment