Skip to content

Commit

Permalink
add bigfix recipe for podcast episode
Browse files Browse the repository at this point in the history
  • Loading branch information
jgstew committed Dec 3, 2023
1 parent fd9111f commit 50a0c32
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
30 changes: 30 additions & 0 deletions BigFix/BigFix-Podcast.bes.mustashe
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<BES xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="BES.xsd">
<{{TypeTaskOrFixlet}}{{^TypeTaskOrFixlet}}Task{{/TypeTaskOrFixlet}}>
<Title>BigFix Podcast: Episode {{version}}</Title>
<Description></Description>
<Relevance>TRUE</Relevance>
<Category>Podcast</Category>
<DownloadSize>{{DownloadSize}}{{^DownloadSize}}0{{/DownloadSize}}</DownloadSize>
<Source>https://bigfix.buzzsprout.com/</Source>
<SourceID>jgstew</SourceID>
<SourceReleaseDate>{{SourceReleaseDate}}</SourceReleaseDate>
<SourceSeverity></SourceSeverity>
<MIMEField>
<Name>x-fixlet-modification-time</Name>
<Value>{{x-fixlet-modification-time}}</Value>
</MIMEField>
<DefaultAction ID="Action1">
<Description>
<PreLink>Click </PreLink>
<Link>here</Link>
<PostLink> to send the Podcast Episode to clients.</PostLink>
</Description>
<ActionScript MIMEType="application/x-Fixlet-Windows-Shell"><![CDATA[
{{{prefetch}}}
// End]]></ActionScript>
<SuccessCriteria Option="RunToCompletion"></SuccessCriteria>
</DefaultAction>
</{{TypeTaskOrFixlet}}{{^TypeTaskOrFixlet}}Task{{/TypeTaskOrFixlet}}>
</BES>
23 changes: 23 additions & 0 deletions BigFix/BigFix-Podcast.bigfix.recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
Description: Generates a BigFix Task for the latest BigFix Podcast Episode
Identifier: com.github.jgstew.bigfix.BigFix-Podcast
Input:
NAME: BigFix-Podcast
MinimumVersion: '2.3'
ParentRecipe: com.github.jgstew.download.BigFix-Podcast
Process:
- Processor: com.github.jgstew.SharedProcessors/BigFixPrefetchItem

- Processor: com.github.jgstew.SharedProcessors/BigFixSetupTemplateDictionary
Arguments:
template_version: "%ep_number%"

- Processor: com.github.jgstew.SharedProcessors/TemplateDictionaryAppend
Arguments:
append_key: "ep_title"
append_value: "%ep_title%"

- Processor: com.github.jgstew.SharedProcessors/ContentFromTemplate
Arguments:
template_file_path: ./BigFix/%NAME%.bes.mustashe
content_file_pathname: "%RECIPE_CACHE_DIR%/%NAME%.bes"
1 change: 1 addition & 0 deletions BigFix/BigFix-Podcast.download.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Input:
NAME: BigFix-Podcast
MinimumVersion: '2.3'
Process:
- Processor: com.github.jgstew.SharedProcessors/SharedUtilityMethods
- Processor: URLDownloaderPython
Arguments:
url: https://feeds.buzzsprout.com/1248878.rss
Expand Down

0 comments on commit 50a0c32

Please sign in to comment.