-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathJekyll-Tech.ps1
More file actions
58 lines (42 loc) · 1.56 KB
/
Copy pathJekyll-Tech.ps1
File metadata and controls
58 lines (42 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[ValidatePattern('(^|\s)(?>Tech(?:nology)?|Jekyll)')]
param()
function Tech.Jekyll {
<#
.SYNOPSIS
Jekyll Tech Definition
.DESCRIPTION
Defines Jekyll as a techology PipeScript can work with.
Jekyll is a simple, blog-aware, static site generator for personal, project, or organization sites.
This allows PipeScript to generate, install, and serve Jekyll.
#>
$this = $myInvocation.MyCommand
if (-not $this.Instance) {
$singletonInstance = New-Module -ArgumentList @(@($input) + @($args)) -AsCustomObject {
<#
.SYNOPSIS
Jekyll Tech Definition
.DESCRIPTION
Defines Jekyll as a techology PipeScript can work with.
Jekyll is a simple, blog-aware, static site generator for personal, project, or organization sites.
This allows PipeScript to generate, install, and serve Jekyll.
#>
param()
$Name = 'Jekyll'
$Synopsis = 'A simple, blog-aware, static site generator'
$Description = @'
Jekyll is a simple, blog-aware, static site generator for personal, project, or organization sites.
'@
$Website = 'https://jekyllrb.com/'
$Compiler = 'jekyll','build'
$Install = {gem install bundler jekyll}
$Serve = 'jekyll','serve'
$Language = 'Ruby'
Export-ModuleMember -Function * -Alias * -Cmdlet * -Variable *
}
$singletonInstance.pstypenames.clear()
$singletonInstance.pstypenames.add('Tech.Jekyll')
$singletonInstance.pstypenames.add('Tech')
Add-Member -InputObject $this -MemberType NoteProperty -Name Instance -Value $singletonInstance -Force
}
$this.Instance
}