Sha256: e995775f46be71645ce67b07faa591bfbcb6baf0994669469df2f658715dd27e

Contents?: true

Size: 980 Bytes

Versions: 19

Compression:

Stored size: 980 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": "\(type.token)", "command": \(commandJson) }
        """
    }
}

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

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
fastlane-2.158.0 fastlane/swift/RubyCommandable.swift
fastlane-2.157.4 fastlane/swift/RubyCommandable.swift
fastlane-2.157.3 fastlane/swift/RubyCommandable.swift
fastlane-2.157.2 fastlane/swift/RubyCommandable.swift
fastlane-2.157.1 fastlane/swift/RubyCommandable.swift
fastlane-2.157.0 fastlane/swift/RubyCommandable.swift
fastlane-2.156.1 fastlane/swift/RubyCommandable.swift
fastlane-2.156.0 fastlane/swift/RubyCommandable.swift
fastlane-2.155.3 fastlane/swift/RubyCommandable.swift
fastlane-2.155.2 fastlane/swift/RubyCommandable.swift
fastlane-2.155.1 fastlane/swift/RubyCommandable.swift
fastlane-2.155.0 fastlane/swift/RubyCommandable.swift
fastlane-2.154.0 fastlane/swift/RubyCommandable.swift
fastlane-2.153.1 fastlane/swift/RubyCommandable.swift
fastlane-2.153.0 fastlane/swift/RubyCommandable.swift
fastlane-2.152.0 fastlane/swift/RubyCommandable.swift
fastlane-2.151.2 fastlane/swift/RubyCommandable.swift
fastlane-2.151.1 fastlane/swift/RubyCommandable.swift
fastlane-2.151.0 fastlane/swift/RubyCommandable.swift