Sha256: d918a3d706f4afdf51a927c3c790050bcbe00c34522ce3bf661f7d8ec573d3dc

Contents?: true

Size: 1.23 KB

Versions: 276

Compression:

Stored size: 1.23 KB

Contents

require 'commander'
require 'fastlane/version'

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, 'GitHub', 'https://github.com/fastlane/fastlane/tree/master/pem#readme'
      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

276 entries across 276 versions & 1 rubygems

Version Path
fastlane-2.74.0.beta.20180106010004 pem/lib/pem/commands_generator.rb
fastlane-2.73.0 pem/lib/pem/commands_generator.rb
fastlane-2.73.0.beta.20180105010003 pem/lib/pem/commands_generator.rb
fastlane-2.73.0.beta.20180104010004 pem/lib/pem/commands_generator.rb
fastlane-2.73.0.beta.20180103010003 pem/lib/pem/commands_generator.rb
fastlane-2.72.0 pem/lib/pem/commands_generator.rb
fastlane-2.72.0.beta.20180102010003 pem/lib/pem/commands_generator.rb
fastlane-2.72.0.beta.20180101010003 pem/lib/pem/commands_generator.rb
fastlane-2.72.0.beta.20171231010003 pem/lib/pem/commands_generator.rb
fastlane-2.71.1 pem/lib/pem/commands_generator.rb
fastlane-2.72.0.beta.20171230010003 pem/lib/pem/commands_generator.rb
fastlane-2.72.0.beta.20171229010003 pem/lib/pem/commands_generator.rb
fastlane-2.72.0.beta.20171228010004 pem/lib/pem/commands_generator.rb
fastlane-2.71.0 pem/lib/pem/commands_generator.rb
fastlane-2.71.0.beta.20171227010004 pem/lib/pem/commands_generator.rb
fastlane-2.71.0.beta.20171226010004 pem/lib/pem/commands_generator.rb
fastlane-2.71.0.beta.20171225010003 pem/lib/pem/commands_generator.rb
fastlane-2.71.0.beta.20171224010003 pem/lib/pem/commands_generator.rb
fastlane-2.71.0.beta.20171223010003 pem/lib/pem/commands_generator.rb
fastlane-2.71.0.beta.20171222010003 pem/lib/pem/commands_generator.rb