Skip to content

Commit

Permalink
#33
Browse files Browse the repository at this point in the history
  • Loading branch information
sjkp committed Mar 7, 2016
1 parent aa8ce27 commit 8881870
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
16 changes: 11 additions & 5 deletions LetsEncrypt.SiteExtension.WebJob/Functions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,19 @@ public override DateTime GetNextOccurrence(DateTime now)
}

public class Functions
{


public static void SetupHostNameAndCertificate([TimerTrigger(typeof(MonthlySchedule), RunOnStartup = true)] TimerInfo timerInfo)
{
public static void SetupHostNameAndCertificate([TimerTrigger(typeof(MonthlySchedule), RunOnStartup = true)] TimerInfo timerInfo, [Blob("letsencrypt/firstrun.job")] string input, [Blob("letsencrypt/firstrun.job")] out string output)
{
Console.WriteLine("Starting setup hostname and certificate");
new CertificateManager().SetupHostnameAndCertificate();
if (string.IsNullOrEmpty(input))
{
new CertificateManager().SetupHostnameAndCertificate();
output = DateTime.UtcNow.ToString();
}
else
{
output = input;
}
Console.WriteLine("Completed setup hostname and certificate");
}

Expand Down
2 changes: 1 addition & 1 deletion LetsEncrypt.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>letsencrypt</id>
<title>Azure Let's Encrypt (x86)</title>
<version>0.4.5</version>
<version>0.4.7</version>
<authors>SJKP</authors>
<licenseUrl>http://opensource.org/licenses/Apache-2.0</licenseUrl>
<projectUrl>https://github.com/sjkp/letsencrypt-siteextension</projectUrl>
Expand Down
2 changes: 1 addition & 1 deletion LetsEncrypt64.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>letsencrypt64</id>
<title>Azure Let's Encrypt (x64)</title>
<version>0.4.5</version>
<version>0.4.7</version>
<authors>SJKP</authors>
<licenseUrl>http://opensource.org/licenses/Apache-2.0</licenseUrl>
<projectUrl>https://github.com/sjkp/letsencrypt-siteextension</projectUrl>
Expand Down
2 changes: 1 addition & 1 deletion letsencrypt.siteextension.job.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>letsencrypt.siteextension.job</id>
<title>Azure SiteExtension Let's Encrypt WebJob</title>
<version>0.4.5-beta</version>
<version>0.4.7-beta</version>
<authors>SJKP</authors>
<licenseUrl>http://opensource.org/licenses/Apache-2.0</licenseUrl>
<projectUrl>https://github.com/sjkp/letsencrypt-siteextension</projectUrl>
Expand Down
2 changes: 1 addition & 1 deletion letsencrypt.siteextension.job64.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>letsencrypt.siteextension.job64</id>
<title>Azure SiteExtension Let's Encrypt WebJob (64bit)</title>
<version>0.4.5-beta</version>
<version>0.4.7-beta</version>
<authors>SJKP</authors>
<licenseUrl>http://opensource.org/licenses/Apache-2.0</licenseUrl>
<projectUrl>https://github.com/sjkp/letsencrypt-siteextension</projectUrl>
Expand Down

0 comments on commit 8881870

Please sign in to comment.