Skip to content

Commit

Permalink
Linux client implementation of 'in office' timeblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-dupdyke committed Nov 16, 2023
1 parent f11c175 commit f69ccd5
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 73 deletions.
2 changes: 2 additions & 0 deletions src/Ghosts.Domain/Code/WorkingHours.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System;
using System.Linq;
using System.Threading;
using Ghosts.Domain.Code.Helpers;
using NLog;

namespace Ghosts.Domain.Code
Expand Down Expand Up @@ -98,6 +99,7 @@ private static void Sleep(TimelineHandler handler, int msToSleep)

private static void Sleep(TimelineHandler handler, TimeSpan sleep)
{
// TODO: We need a way to kill this handler like handler.SafeKill();
Sleep(handler, (int)sleep.TotalMilliseconds);
}
}
Expand Down
1 change: 0 additions & 1 deletion src/ghosts.client.linux/Handlers/Sftp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using Ghosts.Domain;
using Newtonsoft.Json;
using Ghosts.Domain.Code;
using WorkingHours = ghosts.client.linux.Infrastructure.WorkingHours;

namespace ghosts.client.linux.handlers
{
Expand Down
8 changes: 0 additions & 8 deletions src/ghosts.client.linux/Handlers/Ssh.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using Ghosts.Domain;
using Newtonsoft.Json;
using Ghosts.Domain.Code;
using WorkingHours = ghosts.client.linux.Infrastructure.WorkingHours;

/*
* Used Package Renci.sshNet
Expand All @@ -28,7 +27,6 @@ namespace ghosts.client.linux.handlers
/// </summary>
public class Ssh : BaseHandler
{

private Credentials CurrentCreds = null;
private SshSupport CurrentSshSupport = null; //current SshSupport for this object
public int jitterfactor = 0;
Expand Down Expand Up @@ -216,11 +214,5 @@ public void Command(TimelineHandler handler, TimelineEvent timelineEvent, string
}

}





}

}
60 changes: 0 additions & 60 deletions src/ghosts.client.linux/Infrastructure/WorkingHours.cs

This file was deleted.

1 change: 1 addition & 0 deletions src/ghosts.client.linux/config/timeline.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"Initial": "about:blank",
"UtcTimeOn": "00:00:00",
"UtcTimeOff": "24:00:00",
"UtcTimeBlocks": [ "14:00:00", "17:00:00", "18:00:00", "22:00:00" ],
"Loop": "True",
"TimeLineEvents": [
{
Expand Down
9 changes: 5 additions & 4 deletions src/ghosts.client.linux/ghosts.client.linux.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
<OutputType>Exe</OutputType>
<RuntimeIdentifiers>win7-x64;ubuntu.16.10-x64;osx.10.12-x64</RuntimeIdentifiers>

<Version>7.0.0.0</Version>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<ReleaseVersion>7.0.0.0</ReleaseVersion>
<FileVersion>7.0.236.0</FileVersion>
<Version>7.1.0.0</Version>
<AssemblyVersion>7.1.0.0</AssemblyVersion>
<ReleaseVersion>7.1.0.0</ReleaseVersion>
<FileVersion>7.1.0.0</FileVersion>

<SynchReleaseVersion>false</SynchReleaseVersion>

<Authors>Dustin Updyke for Carnegie Mellon University</Authors>
Expand Down

0 comments on commit f69ccd5

Please sign in to comment.