Sha256: 875de5bc408bb36d1c999ff6df27852ba84b8020243aea588bb48d04bebd8b88

Contents?: true

Size: 1.76 KB

Versions: 526

Compression:

Stored size: 1.76 KB

Contents

require 'commander'
require 'fastlane/version'
require 'fastlane_core/configuration/configuration'
require 'fastlane_core/globals'

require_relative 'options'
require_relative 'runner'

HighLine.track_eof = false

module Cert
  class CommandsGenerator
    include Commander::Methods

    def self.start
      self.new.run
    end

    def run
      program :name, 'cert'
      program :version, Fastlane::VERSION
      program :description, 'CLI for \'cert\' - Create new iOS code signing certificates'
      program :help, 'Author', 'Felix Krause <cert@krausefx.com>'
      program :help, 'Website', 'https://fastlane.tools'
      program :help, 'Documentation', 'https://docs.fastlane.tools/actions/cert/'
      program :help_formatter, :compact

      global_option('--verbose') { FastlaneCore::Globals.verbose = true }

      command :create do |c|
        c.syntax = 'fastlane cert create'
        c.description = 'Create new iOS code signing certificates'

        FastlaneCore::CommanderGenerator.new.generate(Cert::Options.available_options, command: c)

        c.action do |args, options|
          Cert.config = FastlaneCore::Configuration.create(Cert::Options.available_options, options.__hash__)
          Cert::Runner.new.launch
        end
      end

      command :revoke_expired do |c|
        c.syntax = 'fastlane cert revoke_expired'
        c.description = 'Revoke expired iOS code signing certificates'

        FastlaneCore::CommanderGenerator.new.generate(Cert::Options.available_options, command: c)

        c.action do |args, options|
          Cert.config = FastlaneCore::Configuration.create(Cert::Options.available_options, options.__hash__)
          Cert::Runner.new.revoke_expired_certs!
        end
      end

      default_command(:create)

      run!
    end
  end
end

Version data entries

526 entries across 526 versions & 2 rubygems

Version Path
fastlane-2.131.0.beta.20190910200104 cert/lib/cert/commands_generator.rb
fastlane-2.131.0.beta.20190909200058 cert/lib/cert/commands_generator.rb
fastlane-2.131.0.beta.20190908200041 cert/lib/cert/commands_generator.rb
fastlane-2.131.0.beta.20190907200030 cert/lib/cert/commands_generator.rb
fastlane-2.131.0.beta.20190906200026 cert/lib/cert/commands_generator.rb
fastlane-2.131.0.beta.20190905200113 cert/lib/cert/commands_generator.rb
fastlane-2.131.0.beta.20190904200040 cert/lib/cert/commands_generator.rb
fastlane-2.131.0.beta.20190903200013 cert/lib/cert/commands_generator.rb
fastlane-2.131.0.beta.20190902200022 cert/lib/cert/commands_generator.rb
fastlane-2.131.0.beta.20190901200035 cert/lib/cert/commands_generator.rb
fastlane-2.131.0.beta.20190831200041 cert/lib/cert/commands_generator.rb
fastlane-2.131.0.beta.20190830200038 cert/lib/cert/commands_generator.rb
fastlane-2.130.0 cert/lib/cert/commands_generator.rb
fastlane-2.130.0.beta.20190829200051 cert/lib/cert/commands_generator.rb
fastlane-2.130.0.beta.20190828200015 cert/lib/cert/commands_generator.rb
fastlane-2.130.0.beta.20190827200051 cert/lib/cert/commands_generator.rb
fastlane-2.130.0.beta.20190826200016 cert/lib/cert/commands_generator.rb
fastlane-2.130.0.beta.20190825200030 cert/lib/cert/commands_generator.rb
fastlane-2.130.0.beta.20190824200021 cert/lib/cert/commands_generator.rb
fastlane-2.130.0.beta.20190823200017 cert/lib/cert/commands_generator.rb