Skip to content

Commit

Permalink
RENAME: peercc to rccremote (v13.4.0)
Browse files Browse the repository at this point in the history
- peercc is renamed to rccremote, and peercc package renamed to remotree
  • Loading branch information
vjmp committed Jan 30, 2023
1 parent a13e2f8 commit 65186db
Show file tree
Hide file tree
Showing 14 changed files with 22 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Changelog can be seen [here.](/docs/changelog.md) It is also visible inside rcc

Some tips, tricks, and recipes can be found [here.](/docs/recipes.md) They are also visible inside rcc using command `rcc docs recipes`.

## Community
## Community and Support

The Robocorp community can be found on [Developer Slack](https://robocorp-developers.slack.com), where you can ask questions, voice ideas, and share your projects.

Expand Down
12 changes: 6 additions & 6 deletions cmd/peercc/main.go → cmd/rccremote/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"github.com/robocorp/rcc/common"
"github.com/robocorp/rcc/pathlib"
"github.com/robocorp/rcc/peercc"
"github.com/robocorp/rcc/pretty"
"github.com/robocorp/rcc/remotree"
)

var (
Expand All @@ -20,7 +20,7 @@ var (
)

func defaultHoldLocation() string {
where, err := pathlib.Abs(filepath.Join(pathlib.TempDir(), "peercchold"))
where, err := pathlib.Abs(filepath.Join(pathlib.TempDir(), "rccremotehold"))
if err != nil {
return "temphold"
}
Expand All @@ -31,7 +31,7 @@ func init() {
flag.BoolVar(&common.DebugFlag, "debug", false, "Turn on debugging output.")
flag.BoolVar(&common.TraceFlag, "trace", false, "Turn on tracing output.")

flag.BoolVar(&versionFlag, "version", false, "Just show peercc version and exit.")
flag.BoolVar(&versionFlag, "version", false, "Just show rccremote version and exit.")
flag.StringVar(&serverName, "hostname", "localhost", "Hostname/address to bind server to.")
flag.IntVar(&serverPort, "port", 4653, "Port to bind server in given hostname.")
flag.StringVar(&holdingArea, "hold", defaultHoldLocation(), "Directory where to put HOLD files once known.")
Expand Down Expand Up @@ -62,9 +62,9 @@ func process() {
if versionFlag {
showVersion()
}
pretty.Guard(common.SharedHolotree, 1, "Shared holotree must be enabled and in use for peercc to work.")
common.Log("Peer for rcc starting (%s) ...", common.Version)
peercc.Serve(serverName, serverPort, domainId, holdingArea)
pretty.Guard(common.SharedHolotree, 1, "Shared holotree must be enabled and in use for rccremote to work.")
common.Log("Remote for rcc starting (%s) ...", common.Version)
remotree.Serve(serverName, serverPort, domainId, holdingArea)
}

func main() {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion common/version.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package common

const (
Version = `v13.3.0`
Version = `v13.4.0`
)
4 changes: 4 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# rcc change log

## v13.4.0 (date: 30.1.2023)

- peercc is renamed to rccremote, and peercc package renamed to remotree

## v13.3.0 (date: 27.1.2023)

- feature: command for prebuilding environments (from files or from URLs)
Expand Down
4 changes: 2 additions & 2 deletions operations/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func downloadMissingEnvironmentParts(origin, catalogName, selection string) (fil
url := fmt.Sprintf("%s/delta/%s", origin, catalogName)

body := strings.NewReader(selection)
filename = filepath.Join(pathlib.TempDir(), fmt.Sprintf("peercc_%x.zip", os.Getpid()))
filename = filepath.Join(pathlib.TempDir(), fmt.Sprintf("rccremote_%x.zip", os.Getpid()))

client := &http.Client{Transport: settings.Global.ConfiguredHttpTransport()}
request, err := http.NewRequest("POST", url, body)
Expand Down Expand Up @@ -91,7 +91,7 @@ func downloadMissingEnvironmentParts(origin, catalogName, selection string) (fil
fail.On(err != nil, "Download failed, reason: %v", err)

sum := fmt.Sprintf("%02x", digest.Sum(nil))
finalname := filepath.Join(pathlib.TempDir(), fmt.Sprintf("peercc_%s.zip", sum))
finalname := filepath.Join(pathlib.TempDir(), fmt.Sprintf("rccremote_%s.zip", sum))
err = pathlib.TryRename("delta", filename, finalname)
fail.On(err != nil, "Rename %q -> %q failed, reason: %v", filename, finalname, err)

Expand Down
1 change: 0 additions & 1 deletion peercc/missing_test.go

This file was deleted.

2 changes: 1 addition & 1 deletion peercc/delta.go → remotree/delta.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package peercc
package remotree

import (
"archive/zip"
Expand Down
4 changes: 2 additions & 2 deletions peercc/listings.go → remotree/listings.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package peercc
package remotree

import (
"bufio"
Expand Down Expand Up @@ -54,7 +54,7 @@ func makeQueryHandler(queries Partqueries, triggers chan string) http.HandlerFun

func loadSingleCatalog(catalog string) (root *htfs.Root, err error) {
defer fail.Around(&err)
tempdir := filepath.Join(common.RobocorpTemp(), "peercc")
tempdir := filepath.Join(common.RobocorpTemp(), "rccremote")
shadow, err := htfs.NewRoot(tempdir)
fail.On(err != nil, "Could not create root, reason: %v", err)
filename := filepath.Join(common.HololibCatalogLocation(), catalog)
Expand Down
2 changes: 1 addition & 1 deletion peercc/manage.go → remotree/manage.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package peercc
package remotree

import (
"path/filepath"
Expand Down
2 changes: 1 addition & 1 deletion peercc/messages.go → remotree/messages.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package peercc
package remotree

type (
Partquery struct {
Expand Down
1 change: 1 addition & 0 deletions remotree/missing_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package remotree_test
2 changes: 1 addition & 1 deletion peercc/server.go → remotree/server.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package peercc
package remotree

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion peercc/trigger.go → remotree/trigger.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package peercc
package remotree

import (
"net/http"
Expand Down

0 comments on commit 65186db

Please sign in to comment.