mirror of
https://github.com/Smaug123/PulumiConfig
synced 2025-10-10 02:58:39 +00:00
Create Pulumi-provisioned web server
This commit is contained in:
21
PulumiWebServer.Test/Utils.fs
Normal file
21
PulumiWebServer.Test/Utils.fs
Normal file
@@ -0,0 +1,21 @@
|
||||
namespace PulumiWebServer.Test
|
||||
|
||||
open System.IO
|
||||
|
||||
[<RequireQualifiedAccess>]
|
||||
module Utils =
|
||||
|
||||
type Dummy =
|
||||
class
|
||||
end
|
||||
|
||||
let rec findFileAbove (fileName : string) (di : DirectoryInfo) =
|
||||
if isNull di then
|
||||
failwith "hit the root without finding anything"
|
||||
|
||||
let candidate = Path.Combine (di.FullName, fileName) |> FileInfo
|
||||
|
||||
if candidate.Exists then
|
||||
candidate
|
||||
else
|
||||
findFileAbove fileName di.Parent
|
Reference in New Issue
Block a user