Sha256: 8af97aa2fdcb5b618fbf1cca4f0ad4488d18ef189efcd3c24ae4bf851242308a

Contents?: true

Size: 947 Bytes

Versions: 366

Compression:

Stored size: 947 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 }
}

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

366 entries across 366 versions & 2 rubygems

Version Path
fastlane-2.149.1 fastlane/swift/RubyCommandable.swift
fastlane-2.149.0 fastlane/swift/RubyCommandable.swift
fastlane-2.148.1 fastlane/swift/RubyCommandable.swift
fastlane-2.148.0 fastlane/swift/RubyCommandable.swift
fastlane-2.147.0 fastlane/swift/RubyCommandable.swift
fastlane-2.146.1 fastlane/swift/RubyCommandable.swift
fastlane-2.146.0 fastlane/swift/RubyCommandable.swift
fastlane-2.145.0 fastlane/swift/RubyCommandable.swift
fastlane-2.144.0 fastlane/swift/RubyCommandable.swift
fastlane-2.143.0 fastlane/swift/RubyCommandable.swift
fastlane-2.142.0 fastlane/swift/RubyCommandable.swift
fastlane-2.141.0 fastlane/swift/RubyCommandable.swift
fastlane-2.140.0 fastlane/swift/RubyCommandable.swift
fastlane-2.139.0 fastlane/swift/RubyCommandable.swift
fastlane-2.138.0 fastlane/swift/RubyCommandable.swift
fastlane-2.137.0 fastlane/swift/RubyCommandable.swift
fastlane-2.136.0 fastlane/swift/RubyCommandable.swift
fastlane-2.135.2 fastlane/swift/RubyCommandable.swift
fastlane-2.135.1 fastlane/swift/RubyCommandable.swift
fastlane-2.135.0 fastlane/swift/RubyCommandable.swift