All files / src/setupTools darwin.js

51.43% Statements 18/35
0% Branches 0/9
16.67% Functions 1/6
58.33% Lines 7/12

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 242x 2x 2x   2x     2x                     2x       2x  
import { commandExistsSync, executeAsync } from '../systemTools/exec';
import BasePlatformSetup from './base';
import Config from '../config';
 
class LinuxPlatformSetup extends BasePlatformSetup {
    constructor() {
        super('darwin');
    }
 
    async installFastlane() {
        const c = Config.getConfig();
        if (commandExistsSync('brew')) {
            return executeAsync(c, 'brew cask install fastlane', { interactive: true });
        }
        return executeAsync(c, 'sudo gem install fastlane -NV', { interactive: true });
    }
 
    async installDocker() {
        throw new Error('Automated Docker install is not supported on this platform. Please go to https://hub.docker.com/editions/community/docker-ce-desktop-mac and install it manually. Then rerun this command');
    }
}
 
export default LinuxPlatformSetup;