I hereby claim:
- I am ramarnat on github.
- I am ramarnat (https://keybase.io/ramarnat) on keybase.
- I have a public key whose fingerprint is 5599 E00E B825 301A 925A AAA7 676A 442E F129 DCF2
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| require 'spec_helper' | |
| # module Full360 | |
| describe 'lib_epm::deploy' do | |
| before do | |
| allow_any_instance_of(Full360::Configurator).to receive(:stage_task_running?).and_return(false) | |
| end | |
| cached(:runner) {ChefSpec::SoloRunner.new(step_into: ['lib_epm_silent_xml_file', 'lib_epm_configurator'])} |
| shutdown /r /t 1 /c "testing boxstarter reboot" | |
| if (Test-PendingReboot) { | |
| Write-BoxstarterMessage "System Shutdown not in progress" -Verbose | |
| } | |
| else { | |
| Write-BoxstarterMessage "System Shutdown in progress" -Verbose | |
| } |
| Set-StrictMode -Version Latest | |
| Set-ExecutionPolicy Unrestricted | |
| $log = 'c:\boxstarter-boostrap.txt' | |
| Try | |
| { | |
| . C:\Users\Administrator\AppData\Roaming\Boxstarter\BoxstarterShell.ps1 | |
| Get-Module -ListAvailable | Add-Content $log |
| # From https://gallery.technet.microsoft.com/scriptcenter/Get-PendingReboot-Query-bdb79542 | |
| Function Get-PendingReboot | |
| { | |
| <# | |
| .SYNOPSIS | |
| Gets the pending reboot status on a local or remote computer. | |
| .DESCRIPTION | |
| This function will query the registry on a local or remote computer and determine if the | |
| system is pending a reboot, from Microsoft updates, Configuration Manager Client SDK, Pending Computer |
| list_% : ; @echo $* = $($*) |
| --- | |
| description: ENSURE methodical execution and context preservation WHEN performing any operation TO maintain reliability and consistency | |
| globs: **/* | |
| --- | |
| <version>2.0.0</version> | |
| # Methodical Execution and Context Preservation | |
| ## Context |