test
This commit is contained in:
@@ -10,15 +10,15 @@ import (
|
||||
"oc-deploy/kubectl"
|
||||
)
|
||||
|
||||
type KubecltInstallData struct {
|
||||
type KubectlInstall struct {
|
||||
obj ToolData
|
||||
}
|
||||
|
||||
func (this KubecltInstallData) Get() (ToolData) {
|
||||
func (this KubectlInstall) Get() (ToolData) {
|
||||
return this.obj
|
||||
}
|
||||
|
||||
func (this KubecltInstallData) Download() (error) {
|
||||
func (this KubectlInstall) Download() (error) {
|
||||
|
||||
bin_dir := this.obj.Bin
|
||||
bin := filepath.Join(bin_dir, this.obj.Name)
|
||||
@@ -36,7 +36,7 @@ func (this KubecltInstallData) Download() (error) {
|
||||
}
|
||||
|
||||
///////////////
|
||||
func (this KubecltInstallData) Version(path string) (string, error) {
|
||||
func (this KubectlInstall) Version(path string) (string, error) {
|
||||
cmd := kubectl.KubectlCommand{Bin: path}
|
||||
cmd.New()
|
||||
return cmd.GetVersion()
|
||||
|
Reference in New Issue
Block a user