Day 1: PowerShell, BDD and Git
So the first real work started yesterday afternoon with an introduction to PowerShell. Since all new employees are required to sign up to variety of web services (Office 365, YouTrack, GitHub, WordPress, TeamCity, IPCop), it would save time to write a script to automate this on-boarding process.
Starting with YouTrack, by using the web service's REST APIs we can find the required parameters to pass forward for logging in and creating a new user.
Using endjin's 'work smarter' mantra, the PowerShell script that was then written was adapted from similar work that was done combining TeamCity and PowerShell, which is outlined in an earlier post by Howard.
To test the script, I was shown some BDD in the form of the Pester testing framework for PowerShell and set up tests for all the methods used (example below).
Finally, to save my hard afternoon's work I learnt how to use Git and set up a repository on GitHub. Firstly I used the command line based Git Bash to get an appreciation for what was going on and then SmartGit, which is a much sleeker GUI solution.