Skip to content

Commit

Permalink
Remove functionbeat, skip invalid targets
Browse files Browse the repository at this point in the history
closes #33
  • Loading branch information
Yuriy committed Oct 27, 2019
1 parent a54701e commit a96a58e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
12 changes: 10 additions & 2 deletions src/build/Commands/BuildCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,16 @@ await Command.RunAsync(

foreach (var target in Targets)
{
await Console.Out.WriteLineAsync(Environment.NewLine +
$"Building '{target}' in '{ContainerId}':");
if (!ctx.Config.TargetNames.Any(t => t.ToLower() == target))
{
await Console.Out.WriteLineAsync(
Environment.NewLine + $"Skipping '{target}', invalid");

continue;
}

await Console.Out.WriteLineAsync(
Environment.NewLine + $"Building '{target}' in '{ContainerId}':");

var items = await ArtifactsApi.FindArtifact(target, filter =>
{
Expand Down
2 changes: 1 addition & 1 deletion src/build/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ static async Task Main(string[] args)
async Task Run(string[] args)
{
#if DEBUG
//args = "build --cid 7.x winlogbeat --bitness x64".Split();
//args = "build --cid 8.0-snapshot functionbeat".Split();
//Console.WriteLine("ARGS: " + string.Join(",", args));
#endif

Expand Down
5 changes: 0 additions & 5 deletions src/config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ filebeat:
mutable_dirs: [ kibana, module, modules.d ]
upgrade_code: 830E6D05-2CDB-4F5D-AACC-80B7EED19D43

functionbeat:
description: Functionbeat is a beat implementation for a serverless architecture
service: false
upgrade_code: B28584E2-4F91-4CE2-9B49-A467632E80E4

heartbeat:
description: Ping remote services for availability and log results to Elasticsearch or send to Logstash
mutable_dirs: [ kibana, monitors.d ]
Expand Down

0 comments on commit a96a58e

Please sign in to comment.