Sha256: 7f28e1459e77e936107f864de4b129c343da5215a2fdf83df5c18c45a3de1bbb

Contents?: true

Size: 1.41 KB

Versions: 58

Compression:

Stored size: 1.41 KB

Contents

require 'commander'

require 'fastlane/version'
require 'fastlane_core/configuration/configuration'
require_relative 'options'
require_relative 'manager'

HighLine.track_eof = false

module PEM
  class CommandsGenerator
    include Commander::Methods

    def self.start
      self.new.run
    end

    def run
      program :name, 'pem'
      program :version, Fastlane::VERSION
      program :description, 'CLI for \'PEM\' - Automatically generate and renew your push notification profiles'
      program :help, 'Author', 'Felix Krause <pem@krausefx.com>'
      program :help, 'Website', 'https://fastlane.tools'
      program :help, 'Documentation', 'https://docs.fastlane.tools/actions/pem/'
      program :help_formatter, :compact

      global_option('--verbose') { FastlaneCore::Globals.verbose = true }
      global_option('--env STRING[,STRING2]', String, 'Add environment(s) to use with `dotenv`')

      command :renew do |c|
        c.syntax = 'fastlane pem renew'
        c.description = 'Renews the certificate (in case it expired) and shows the path to the generated pem file'

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

        c.action do |args, options|
          PEM.config = FastlaneCore::Configuration.create(PEM::Options.available_options, options.__hash__)
          PEM::Manager.start
        end
      end

      default_command(:renew)

      run!
    end
  end
end

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
fastlane-2.181.0 pem/lib/pem/commands_generator.rb
fastlane-2.180.1 pem/lib/pem/commands_generator.rb
fastlane-2.180.0 pem/lib/pem/commands_generator.rb
fastlane-2.179.0 pem/lib/pem/commands_generator.rb
fastlane-2.178.0 pem/lib/pem/commands_generator.rb
fastlane-2.177.0 pem/lib/pem/commands_generator.rb
fastlane-2.176.0 pem/lib/pem/commands_generator.rb
fastlane-2.175.0 pem/lib/pem/commands_generator.rb
fastlane-2.174.0 pem/lib/pem/commands_generator.rb
fastlane-2.173.0 pem/lib/pem/commands_generator.rb
fastlane-2.172.0 pem/lib/pem/commands_generator.rb
fastlane-2.171.0 pem/lib/pem/commands_generator.rb
fastlane-2.170.0 pem/lib/pem/commands_generator.rb
fastlane-2.169.0 pem/lib/pem/commands_generator.rb
fastlane-2.168.0 pem/lib/pem/commands_generator.rb
fastlane-2.167.0 pem/lib/pem/commands_generator.rb
fastlane-2.166.0 pem/lib/pem/commands_generator.rb
fastlane-2.165.0 pem/lib/pem/commands_generator.rb
fastlane-2.164.0 pem/lib/pem/commands_generator.rb
fastlane-2.163.0 pem/lib/pem/commands_generator.rb