Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New-xDscResource should create .psd1 file for the top level module folder when a path is specified #39

Open
TravisEz13 opened this issue Jan 26, 2016 · 0 comments
Labels
enhancement The issue is an enhancement request. help wanted The issue is up for grabs for anyone in the community.

Comments

@TravisEz13
Copy link
Contributor

Per @HemantMahawar ,

Create any resource with path specified to New-xDscResource

#The share to create
$ShareName = New-xDscResourceProperty -Name ShareName -Type String -Attribute Key
#Create the actual resource
New-xDscResource -Name Temp -Property $ShareName -Path 'C:\Program Files\WindowsPowerShell\Modules\Temp' -FriendlyName Temp

Actual Check the folder structure - .psd1 from the module folder is missing

tree /f temp
"C:\PROGRAM FILES\WINDOWSPOWERSHELL\MODULES\TEMP"
   # <--- Missing Temp.psd1 file
    DSCResources
      Temp
          Temp.psm1
          Temp.schema.mof

Expected .psd1 is created so that folder is a module

@kwirkykat kwirkykat added enhancement The issue is an enhancement request. help wanted The issue is up for grabs for anyone in the community. labels Aug 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement The issue is an enhancement request. help wanted The issue is up for grabs for anyone in the community.
Projects
None yet
Development

No branches or pull requests

2 participants