Sha256: 808d15854cf4c3f9af852ec374e1f3c001e80e99c62da74369ba5e4fa900561f

Contents?: true

Size: 1008 Bytes

Versions: 159

Compression:

Stored size: 1008 Bytes

Contents

//
//  RubyCommandable.swift
//  FastlaneRunner
//
//  Created by Joshua Liebowitz on 1/4/18.
//  Copyright © 2018 Joshua Liebowitz. All rights reserved.
//

//
//  ** 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

159 entries across 159 versions & 1 rubygems

Version Path
fastlane-2.98.0 fastlane/swift/RubyCommandable.swift
fastlane-2.97.0 fastlane/swift/RubyCommandable.swift
fastlane-2.96.1 fastlane/swift/RubyCommandable.swift
fastlane-2.96.0 fastlane/swift/RubyCommandable.swift
fastlane-2.96.0.beta.20180521050117 fastlane/swift/RubyCommandable.swift
fastlane-2.96.0.beta.20180520050019 fastlane/swift/RubyCommandable.swift
fastlane-2.96.0.beta.20180519050103 fastlane/swift/RubyCommandable.swift
fastlane-2.96.0.beta.20180518050116 fastlane/swift/RubyCommandable.swift
fastlane-2.96.0.beta.20180517050058 fastlane/swift/RubyCommandable.swift
fastlane-2.96.0.beta.20180516050022 fastlane/swift/RubyCommandable.swift
fastlane-2.96.0.beta.20180515050025 fastlane/swift/RubyCommandable.swift
fastlane-2.96.0.beta.20180514050029 fastlane/swift/RubyCommandable.swift
fastlane-2.96.0.beta.20180513050015 fastlane/swift/RubyCommandable.swift
fastlane-2.96.0.beta.20180512050121 fastlane/swift/RubyCommandable.swift
fastlane-2.96.0.beta.20180511050050 fastlane/swift/RubyCommandable.swift
fastlane-2.96.0.beta.20180510050112 fastlane/swift/RubyCommandable.swift
fastlane-2.95.0 fastlane/swift/RubyCommandable.swift
fastlane-2.95.0.beta.20180509050014 fastlane/swift/RubyCommandable.swift
fastlane-2.95.0.beta.20180508050130 fastlane/swift/RubyCommandable.swift
fastlane-2.95.0.beta.20180507050125 fastlane/swift/RubyCommandable.swift