class Cert::CommandsGenerator
Public Class Methods
start()
click to toggle source
# File lib/cert/commands_generator.rb, line 10 def self.start FastlaneCore::UpdateChecker.start_looking_for_update('cert') self.new.run ensure FastlaneCore::UpdateChecker.show_update_status('cert', Cert::VERSION) end
Public Instance Methods
run()
click to toggle source
# File lib/cert/commands_generator.rb, line 17 def run program :name, 'cert' program :version, Cert::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, 'GitHub', 'https://github.com/fastlane/cert' program :help_formatter, :compact global_option('--verbose') { $verbose = true } FastlaneCore::CommanderGenerator.new.generate(Cert::Options.available_options) command :create do |c| c.syntax = 'cert create' c.description = 'Create new iOS code signing certificates' 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 = 'cert revoke_expired' c.description = 'Revoke expired iOS code signing certificates' 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