Skip to content

Commit

Permalink
🔈 replaced tab to space
Browse files Browse the repository at this point in the history
  • Loading branch information
stormcat24 committed Jul 19, 2015
1 parent 4105cbd commit b4a49d6
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions operation/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,29 +205,29 @@ func createClusterPlans(controller *service.ServiceController, projectDir string
fmt.Println(color.Yellow(fmt.Sprintf("Current status of ECS Cluster '%s':", plan.Name)))

if len(plan.CurrentServices) > 0 {
fmt.Println(color.Yellow("\tServices as follows:"))
fmt.Println(color.Yellow(" Services as follows:"))
} else {
fmt.Println(color.Yellow("\tNo services are deployed."))
fmt.Println(color.Yellow(" No services are deployed."))
}

for _, cs := range plan.CurrentServices {
fmt.Println(color.Yellow(fmt.Sprintf("\t\tServiceName = %s", *cs.ServiceName)))
fmt.Println(color.Yellow(fmt.Sprintf("\t\tServiceARN = %s", *cs.ServiceARN)))
fmt.Println(color.Yellow(fmt.Sprintf("\t\tTaskDefinition = %s", *cs.TaskDefinition)))
fmt.Println(color.Yellow(fmt.Sprintf("\t\tDesiredCount = %d", *cs.DesiredCount)))
fmt.Println(color.Yellow(fmt.Sprintf("\t\tPendingCount = %d", *cs.PendingCount)))
fmt.Println(color.Yellow(fmt.Sprintf("\t\tRunningCount = %d", *cs.RunningCount)))
fmt.Println(color.Yellow(fmt.Sprintf(" ServiceName = %s", *cs.ServiceName)))
fmt.Println(color.Yellow(fmt.Sprintf(" ServiceARN = %s", *cs.ServiceARN)))
fmt.Println(color.Yellow(fmt.Sprintf(" TaskDefinition = %s", *cs.TaskDefinition)))
fmt.Println(color.Yellow(fmt.Sprintf(" DesiredCount = %d", *cs.DesiredCount)))
fmt.Println(color.Yellow(fmt.Sprintf(" PendingCount = %d", *cs.PendingCount)))
fmt.Println(color.Yellow(fmt.Sprintf(" RunningCount = %d", *cs.RunningCount)))
for _, lb := range cs.LoadBalancers {
fmt.Println(color.Yellow(fmt.Sprintf("\t\tELB = %s:", *lb.LoadBalancerName)))
fmt.Println(color.Yellow(fmt.Sprintf("\t\t\tContainerName = %s", *lb.ContainerName)))
fmt.Println(color.Yellow(fmt.Sprintf("\t\t\tContainerName = %d", *lb.ContainerPort)))
fmt.Println(color.Yellow(fmt.Sprintf(" ELB = %s:", *lb.LoadBalancerName)))
fmt.Println(color.Yellow(fmt.Sprintf(" ContainerName = %s", *lb.ContainerName)))
fmt.Println(color.Yellow(fmt.Sprintf(" ContainerName = %d", *lb.ContainerPort)))
}
fmt.Println(color.Yellow(fmt.Sprintf("\t\tSTATUS = %s", *cs.Status)))
fmt.Println(color.Yellow(fmt.Sprintf(" STATUS = %s", *cs.Status)))
}

for _, add := range plan.NewServices {
for _, lb := range add.LoadBalancers {
logger.Main.Info(color.Cyan(fmt.Sprintf("\t\t\t ELB:%s", lb.Name)))
logger.Main.Info(color.Cyan(fmt.Sprintf(" ELB:%s", lb.Name)))
}
}

Expand All @@ -245,7 +245,6 @@ func createTaskPlans(controller *task.TaskDefinitionController, projectDir strin
for _, plan := range plans {
logger.Main.Infof("Task Definition '%s'", plan.Name)

logger.Main.Info(color.Cyan(fmt.Sprintf(" [Add] num = %d", len(plan.NewContainers))))
for _, add := range plan.NewContainers {
fmt.Println(color.Cyan(fmt.Sprintf(" (+) %s", add.Name)))
fmt.Println(color.Cyan(fmt.Sprintf(" image: %s", add.Image)))
Expand Down

0 comments on commit b4a49d6

Please sign in to comment.