FVNever.Fabricator.Resources
0.2.0
dotnet add package FVNever.Fabricator.Resources --version 0.2.0
NuGet\Install-Package FVNever.Fabricator.Resources -Version 0.2.0
<PackageReference Include="FVNever.Fabricator.Resources" Version="0.2.0" />
<PackageVersion Include="FVNever.Fabricator.Resources" Version="0.2.0" />
<PackageReference Include="FVNever.Fabricator.Resources" />
paket add FVNever.Fabricator.Resources --version 0.2.0
#r "nuget: FVNever.Fabricator.Resources, 0.2.0"
#:package FVNever.Fabricator.Resources@0.2.0
#addin nuget:?package=FVNever.Fabricator.Resources&version=0.2.0
#tool nuget:?package=FVNever.Fabricator.Resources&version=0.2.0
Fabricator

Fabricator is a hackable DevOps platform, similar to PowerShell's Desired State Configuration in concept.
Core Concept
With Fabricator, the user describes the desired state of their environment, and Fabricator does its best to lead the configuration to this desired state, when asked to do so.
Fabricator's "script" is an F# .fsx script, where you may use all your
favorite refactoring and code inspection tools; you may wrap or augment
Fabricator calls with your code if you want to.
Fabricator offers a DSL and a set of basic tasks to configure the environment, everything is available via NuGet and easily extendable.
Also, Fabricator is portable across the platforms supported by .NET.
Basic Workflow
To start using Fabricator, you should:
- Create a new F# script file, with contents similar to the example.
- Run the script with
dotnet fsi ./script.fsx check— this will check the environment and show the changes that are about to be performed. - If everything's alright, run the script via
dotnet fsi ./script.fsx apply— this will apply the changes to the current environment.
Quick script example:
#r "nuget: FVNever.Fabricator.Console, 0.2.0"
#r "nuget: FVNever.Fabricator.Resources, 0.2.0"
open System
open System.IO
open Fabricator.Console
open Fabricator.Resources.Archive
open Fabricator.Resources.Downloads
open Fabricator.Resources.Files
open Fabricator.Resources.Hash
open TruePath
let shawlVersion = "1.7.0"
let shawlHash = Sha256 "EAA4FED710E844CC7968FDB82E816D406ED89C4486AB34C3E5DB2DA7E5927923"
let cacheDir = AbsolutePath @"T:\Temp\fabricator\download-cache"
let shawlUrl = Uri $"https://github.com/mtkennerly/shawl/releases/download/v{shawlVersion}/shawl-v{shawlVersion}-win64.zip"
let shawlDownloadCache = cacheDir / Path.GetFileName shawlUrl.LocalPath
let shawlExecutable = AbsolutePath @"C:\Programs\shawl\shawl.exe"
let installShawl = [
downloadFile(shawlUrl, shawlHash, shawlDownloadCache)
unpackArchive(shawlDownloadCache, shawlHash, shawlExecutable.Parent.Value)
ensureFileExists shawlExecutable
]
let resources = [
yield! installShawl
]
exit <| EntryPoint.main fsi.CommandLineArgs resources
This script will make sure there's an executable C:\Programs\shawl\shawl.exe downloaded from the specified URL. This executable might then be used for other resources' setup, e.g., for the Windows service resource.
Prerequisites
To work with Fabricator, you'll need .NET SDK 9.0 or later.
Documentation
License
The project is distributed under the terms of the MIT license.
The license indication in the project's sources is compliant with the REUSE specification v3.3.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net9.0
- FSharp.Core (>= 9.0.303)
- FVNever.Fabricator.Core (>= 0.2.0)
- MedallionShell (>= 1.6.2)
- TruePath (>= 1.10.0)
- TruePath.SystemIo (>= 1.10.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
[Fixed]
- EntryPoint.main now works correctly when invoked with fsi.CommandLineArgs.
- FileResource will create the target directory when needed.
[Added]
- A new Fabricator.Resources.Chocolatey module to work with Chocolatey packages on Windows.