train-pwsh 0.1.3 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ec867288676127f29ea07114e8acbb29e126b7dbc15aba96ca8669fd8818ee8
4
- data.tar.gz: f0f08b98e659a6ebae79e6045c928e2bddae9331c5c740ad8b1f4e526841ff1d
3
+ metadata.gz: f2abb2512b0e08cfc8c62921943decbd47cc7ba52320755483be12c7c74392e2
4
+ data.tar.gz: 6211655d9ae40fa13982f34f6e456f451b3e47a81d31f8cb7d791085b0dc41aa
5
5
  SHA512:
6
- metadata.gz: ac445931a17e3a433a4d1b5ccc8901064db19a1763952ca0a339d070c912c70e0c6421f236f97ccc45eee3a4748f92d4725faba4923f24cfe6c1d2d67d3435fe
7
- data.tar.gz: '02475499a432dbd135519783e3afe67bcb166459f3dcf51865cec217f3622c1d3ecb75dc7e87d91b9b44c60c69d5c43d5a41e30162f8a514591c9db97f283474'
6
+ metadata.gz: 253d3d3fc36100ba90563ec290ffd81bf50670065abd029657277ab49feb4d279ddadf21625366fd8c5de27a871f7484a995c580ae43438df44ef4938f75fb50
7
+ data.tar.gz: 97952ce6382936fe1bd6c9457a979537b57ec91f418b9048c526a9e10d607ef4a5713b7ffbbafa75a5a5bdede35abc82476e4c008996e292666e6dcf8216f97a
data/README.md CHANGED
@@ -25,7 +25,7 @@ If train is being invoked using code, this is how it can be used:
25
25
  ```ruby
26
26
  require 'train'
27
27
  train = Train.create('pwsh',
28
- client_id: '1', tenant_id: '2', client_secret: '3', certificate_path: '4', certificate_password: '5', organization: '6', sharepoint_admin_url: '7')
28
+ client_id: '1', tenant_id: '2', client_secret: '3', certificate_path: '4', certificate_password: '5', organization: '6', sharepoint_admin_url: '7', pwsh_path: '8')
29
29
  ```
30
30
 
31
31
  ## Installation
@@ -98,14 +98,14 @@ module TrainPlugins
98
98
  $organization = '#{@organization}'
99
99
 
100
100
  #Connect to Graph module
101
- If($null -eq (get-module -listavailable -name "microsoft.graph")){install-module microsoft.graph}
101
+ If($null -eq (get-module -listavailable -name "microsoft.graph")){install-module microsoft.graph -Force -AllowClobber}
102
102
  If($null -eq (get-module -name "microsoft.graph")){import-module microsoft.graph}
103
103
  $password = ConvertTo-SecureString -String $clientSecret -AsPlainText -Force
104
104
  $ClientSecretCredential = New-Object -TypeName System.Management.Automation.PSCredential($client_id,$password)
105
105
  Connect-MgGraph -TenantId $tenantid -ClientSecretCredential $ClientSecretCredential -NoWelcome
106
106
 
107
107
  #Connect to Exchange module
108
- If($null -eq (get-module -listavailable -name "ExchangeOnlineManagement")){install-module ExchangeOnlineManagement}
108
+ If($null -eq (get-module -listavailable -name "ExchangeOnlineManagement")){install-module ExchangeOnlineManagement -Force -AllowClobber}
109
109
  If($null -eq (get-module -name "ExchangeOnlineManagement")){import-module ExchangeOnlineManagement}
110
110
  $password = ConvertTo-SecureString -String $clientSecret -AsPlainText -Force
111
111
  $ClientSecretCredential = New-Object -TypeName System.Management.Automation.PSCredential($client_id,$password)
@@ -131,13 +131,13 @@ module TrainPlugins
131
131
  $sharepoint_admin_url = '#{@sharepoint_admin_url}'
132
132
 
133
133
  #Connect to Teams module
134
- If($null -eq (get-module -listavailable -name "MicrosoftTeams")){install-module MicrosoftTeams}
134
+ If($null -eq (get-module -listavailable -name "MicrosoftTeams")){install-module MicrosoftTeams -Force -AllowClobber}
135
135
  If($null -eq (get-module -name "MicrosoftTeams")){import-module MicrosoftTeams}
136
136
  $cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2($certificate_path,$certificate_password)
137
137
  Connect-MicrosoftTeams -Certificate $cert -ApplicationId $client_id -TenantId $tenantid > $null
138
138
 
139
139
  #Connect to PnP module
140
- If($null -eq (get-module -listavailable -name "PnP.PowerShell")){install-module PnP.PowerShell}
140
+ If($null -eq (get-module -listavailable -name "PnP.PowerShell")){install-module PnP.PowerShell -Force -AllowClobber}
141
141
  If($null -eq (get-module -name "PnP.PowerShell")){import-module PnP.PowerShell}
142
142
  $password = (ConvertTo-SecureString -AsPlainText $certificate_password -Force)
143
143
  Connect-PnPOnline -Url $sharepoint_admin_url -ClientId $client_id -CertificatePath $certificate_path -CertificatePassword $password -Tenant $tenantid
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Train
4
4
  module Pwsh
5
- VERSION = "0.1.3"
5
+ VERSION = "0.1.5"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: train-pwsh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sujay Kandwal
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-12-25 00:00:00.000000000 Z
11
+ date: 2024-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: train