All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.thoughtworks.gauge.command.GaugeCommandFactory Maven / Gradle / Ivy

There is a newer version: 0.11.0
Show newest version
/*----------------------------------------------------------------
 *  Copyright (c) ThoughtWorks, Inc.
 *  Licensed under the Apache License, Version 2.0
 *  See LICENSE.txt in the project root for license information.
 *----------------------------------------------------------------*/
package com.thoughtworks.gauge.command;

public class GaugeCommandFactory {
    public GaugeJavaCommand getExecutor(String phase) {
        if ("--init".equals(phase)) {
            return new SetupCommand();
        }
        return new StartCommand();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy