Sha256: 9ec7f86608f3ee515f0dd75f526b7eedc337a868a84835cca3d905fa8085b960

Contents?: true

Size: 1.32 KB

Versions: 526

Compression:

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

      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

526 entries across 526 versions & 2 rubygems

Version Path
fastlane-2.129.0.beta.20190802200057 pem/lib/pem/commands_generator.rb
fastlane-2.129.0.beta.20190731200035 pem/lib/pem/commands_generator.rb
fastlane-2.129.0.beta.20190730200040 pem/lib/pem/commands_generator.rb
fastlane-2.129.0.beta.20190729200106 pem/lib/pem/commands_generator.rb
fastlane-2.129.0.beta.20190728200052 pem/lib/pem/commands_generator.rb
fastlane-2.129.0.beta.20190727200032 pem/lib/pem/commands_generator.rb
fastlane-2.129.0.beta.20190726200041 pem/lib/pem/commands_generator.rb
fastlane-2.128.1 pem/lib/pem/commands_generator.rb
fastlane-2.129.0.beta.20190725200033 pem/lib/pem/commands_generator.rb
fastlane-2.129.0.beta.20190723200012 pem/lib/pem/commands_generator.rb
fastlane-2.128.0 pem/lib/pem/commands_generator.rb
fastlane-2.128.0.beta.20190722200021 pem/lib/pem/commands_generator.rb
fastlane-2.128.0.beta.20190721200024 pem/lib/pem/commands_generator.rb
fastlane-2.128.0.beta.20190720200049 pem/lib/pem/commands_generator.rb
fastlane_iac_publish-0.1.5 pem/lib/pem/commands_generator.rb
fastlane-2.127.2 pem/lib/pem/commands_generator.rb
fastlane-2.128.0.beta.20190719200019 pem/lib/pem/commands_generator.rb
fastlane-2.128.0.beta.20190718200101 pem/lib/pem/commands_generator.rb
fastlane-2.128.0.beta.20190717200026 pem/lib/pem/commands_generator.rb
fastlane-2.128.0.beta.20190716200022 pem/lib/pem/commands_generator.rb