Sha256: 53287c926437a5bf9e5db62bde9b85275fd96461af989ebde591325d59fc4161

Contents?: true

Size: 974 Bytes

Versions: 11

Compression:

Stored size: 974 Bytes

Contents

//
//  RubyCommandable.swift
//  FastlaneRunner
//
//  Created by Joshua Liebowitz on 1/4/18.
//

//
//  ** NOTE **
//  This file is provided by fastlane and WILL be overwritten in future updates
//  If you want to add extra functionality to this project, create a new file in a
//  new group so that it won't be marked for upgrade
//

import Foundation

enum CommandType {
    case action
    case control

    var token: String {
        switch self {
        case .action:
            return "action"
        case .control:
            return "control"
        }
    }
}

protocol RubyCommandable {
    var type: CommandType { get }
    var commandJson: String { get }
    var id: String { get }
}

extension RubyCommandable {
    var json: String {
        return "{\"commandType\" : \"\(self.type.token)\", \"command\" : \(self.commandJson)}"
    }
}

// Please don't remove the lines below
// They are used to detect outdated files
// FastlaneRunnerAPIVersion [0.9.2]

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
fastlane-2.150.3 fastlane/swift/RubyCommandable.swift
fastlane-2.150.2 fastlane/swift/RubyCommandable.swift
fastlane-2.150.1 fastlane/swift/RubyCommandable.swift
fastlane-2.150.0 fastlane/swift/RubyCommandable.swift
fastlane-2.150.0.rc7 fastlane/swift/RubyCommandable.swift
fastlane-2.150.0.rc6 fastlane/swift/RubyCommandable.swift
fastlane-2.150.0.rc5 fastlane/swift/RubyCommandable.swift
fastlane-2.150.0.rc4 fastlane/swift/RubyCommandable.swift
fastlane-2.150.0.rc3 fastlane/swift/RubyCommandable.swift
fastlane-2.150.0.rc2 fastlane/swift/RubyCommandable.swift
fastlane-2.150.0.rc1 fastlane/swift/RubyCommandable.swift