()
| 93 | } |
| 94 | |
| 95 | func (d DeployState) Int() int { |
| 96 | switch d { |
| 97 | case DeployStateDownload: |
| 98 | return 1 |
| 99 | case DeployStateDeploy: |
| 100 | return 2 |
| 101 | case DeployStateInitializing: |
| 102 | return 3 |
| 103 | case DeployStateFinish: |
| 104 | return 4 |
| 105 | case DeployStateDownloadError: |
| 106 | return 5 |
| 107 | case DeployStateDeployError: |
| 108 | return 6 |
| 109 | case DeployStateInitializingError: |
| 110 | return 7 |
| 111 | default: |
| 112 | return 1 |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | func FromDeployState(state int) DeployState { |
| 117 | switch state { |
no outgoing calls
no test coverage detected