Skip to content

Commit

Permalink
Remove registry related code from the cli
Browse files Browse the repository at this point in the history
This PR is the counterpart to removing the Registry from bosh in:
cloudfoundry/bosh@2ba78ed

Remove Registry Code
Regenerate Mocks

fix minor issues in bin/mockgen (only runs with bsd sed) and remove registry line from it

[#181129158]Remove registry behaviors from the BOSH CLI

Signed-off-by: Ruben Koster <rubenk@vmware.com>
  • Loading branch information
Konstantin Kiess committed Feb 3, 2022
1 parent 341f966 commit 3f3d92d
Show file tree
Hide file tree
Showing 60 changed files with 2,385 additions and 3,075 deletions.
75 changes: 38 additions & 37 deletions agentclient/mocks/mocks.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions bin/mockgen
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ srcFiles=(
deployment/disk/Disk,Manager
deployment/vm/ManagerFactory
deployment/release/JobResolver
registry/Server,ServerManager
release/Manager,Extractor
state/job/DependencyCompiler
state/pkg/Compiler,CompiledPackageRepo
Expand All @@ -38,8 +37,14 @@ for srcFile in ${srcFiles[*]}; do
mkdir -p $srcDir/mocks
echo mockgen -package mocks -destination $destFile $rootPackage/$package $class
mockgen -package mocks -destination $destFile $rootPackage/$package $class
sed -i "" -e "s%github.com/cloudfoundry/bosh-cli/vendor/%%" $destFile
$bin/go fmt $destFile
if [[ "$(uname)" == "Linux" ]]; then
#gnu sed
sed -i "$destFile" -e "s%github.com/cloudfoundry/bosh-cli/vendor/%%"
else
#osx bsd sed
sed -i "" -e "s%github.com/cloudfoundry/bosh-cli/vendor/%%" $destFile
fi
go fmt $destFil
done


Expand Down
Loading

0 comments on commit 3f3d92d

Please sign in to comment.