# All files / src/setupTools darwin.js

60% Statements 18/30
0% Branches 0/6
25% Functions 1/4
63.64% Lines 7/11

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
    202x
    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 });
        }
    }

    export default LinuxPlatformSetup;