Coder Social home page Coder Social logo

inedox-inedocore's Introduction

inedox-inedocore

Build status

Contains core functionality for Inedo products.

Installation Instructions

To install this extension, visit the Extensions page within the applicable Inedo software.

For manual installation, visit the GitHub releases section of this repository to download the desired version and follow the extension build and deployment documentation on the Inedo website.

Release Notes

Visit the GitHub issues page of this repository for release notes.

Contributing

We are happy to consider contributions in many forms (bug reports, feature requests, pull requests, etc.). For more information, visit the Contributing section on the Inedo website.

inedox-inedocore's People

Contributors

aok-foss avatar apxltd avatar benlubar avatar dependabot[bot] avatar gdivis avatar jjonesinedo avatar jrasch avatar kharnagy avatar mkeymolen avatar psiservices-jharbison avatar rhessinger avatar rickardp avatar stevedennis avatar whatatripp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

inedox-inedocore's Issues

Improve universal package deployment performance

Currently deployment of every file in the archive is orchestrated remotely, which can add lots of overhead if the package contains many files. It should be changed to use a remote job if the agent supports them, otherwise it should fall back on current behavior.

Add "Delete files not in Package" property to Ensure, Get Package

Ensure-Package does not delete files that aren't in the package, so we should have an option that does it.

I suppose for the ensure operation, it would still show as drifted if there are files on disk that don't match the package.

Relevant code:

foreach (var entry in versionInfo.fileList)
{
var relativeName = entry.name;
var file = remoteFiles.GetValueOrDefault(relativeName);
if (file == null)
{
this.LogInformation($"Entry {relativeName} is not present in {this.Template.TargetDirectory}.");
return new ProGetPackageConfiguration
{
TargetDirectory = this.Template.TargetDirectory
};
}
if (!entry.name.EndsWith("/"))
{
var fileInfo = (SlimFileInfo)file;
if (entry.size != fileInfo.Size || entry.date != fileInfo.LastWriteTimeUtc)
{
this.LogInformation($"File {relativeName} in {this.Template.TargetDirectory} is different from file in package.");
this.LogDebug($"Source info: {entry.size} bytes, {entry.date} timestamp");
this.LogDebug($"Target info: {fileInfo.Size} bytes, {fileInfo.LastWriteTimeUtc} timestamp");
return new ProGetPackageConfiguration
{
TargetDirectory = this.Template.TargetDirectory
};
}
}
}

Add List and Map Helper Functions

The * indicates variatic, so could be a $,@,%...

*ListItem(@list, $index);
$ListCount(@list);
@ListInsert(@list, $item[, $index]);
@ListRemove(@list, $index);
$ListIndexOf(@list, $item);

*MapItem(%Map, $key);
@MapKeys(%Map);
%MapAdd(%Map, $key, $item);
%MapRemove(%Map, $key);

Add Option to Use Remote Server to Proxy HTTP Commands

Add UseServerInContext property to the HTTP Operations (category Options)

"When selected, this will proxy the HTTP calls through the server is in context instead of using the server Otter or BuildMaster is installed on. If the server in context is SSH-based, then an error will be raised."

Add Trim, TrimLeft, TrimRight Functions

$Trim($value, [$trimChars])
$TrimLeft($value, [$trimChars])
$TrimRight($value, [$trimChars])

By default, $trimChars is whitespare (whatever string.Trim does), but each char you specify would get trimmed (just like string.trim).

set $path = $TrimRight($path,/); #removes trailing slashes

set $message = $Trim($message); #removes whitespare from $message

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.