github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/acceptancetests/repository/charms-win/dummy-sink/hooks/source-relation-changed.ps1 (about)

     1  status-set.exe "maintenance" "Updating token"
     2  $path = join-path $ENV:ProgramData dummy-sink
     3  mkdir $path
     4  $tokenpath = join-path $path token
     5  relation-get token > $tokenpath
     6  $current_token = relation-get token
     7  juju-log.exe "Token is $current_token"
     8  status-set.exe "active" "Token is $current_token"