Last active
December 17, 2015 15:39
-
-
Save tjlee/5633218 to your computer and use it in GitHub Desktop.
Ruby methods to work with TFS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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