Skip to content

Commit

Permalink
Add GetName() to Step interface
Browse files Browse the repository at this point in the history
  • Loading branch information
cvbarros committed Oct 10, 2018
1 parent ca95e88 commit 913190e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/teamcity/step.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const (
// Step interface represents a a build configuration/template build step. To interact with concrete step types, see the Step* types.
type Step interface {
GetID() string
GetName() string
Type() string
}

Expand Down
5 changes: 5 additions & 0 deletions pkg/teamcity/step_command_line.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ func (s *StepCommandLine) GetID() string {
return s.ID
}

//GetName is a wrapper implementation for Name field, to comply with Step interface
func (s *StepCommandLine) GetName() string {
return s.Name
}

//Type returns the step type, in this case "StepTypePowershell".
func (s *StepCommandLine) Type() BuildStepType {
return StepTypeCommandLine
Expand Down
5 changes: 5 additions & 0 deletions pkg/teamcity/step_powershell.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ func (s *StepPowershell) GetID() string {
return s.ID
}

//GetName is a wrapper implementation for Name field, to comply with Step interface
func (s *StepPowershell) GetName() string {
return s.Name
}

//Type returns the step type, in this case "StepTypePowershell".
func (s *StepPowershell) Type() BuildStepType {
return StepTypePowershell
Expand Down

0 comments on commit 913190e

Please sign in to comment.