Sha256: 5affe8c79880b1366ef7c9ad17a8cc2816366514b561deb2248a24cc3e0b4be6
Contents?: true
Size: 1.32 KB
Versions: 3
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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fastlane-2.74.1 | pem/lib/pem/commands_generator.rb |
fastlane-2.74.0 | pem/lib/pem/commands_generator.rb |
fastlane-2.74.0.beta.20180108010004 | pem/lib/pem/commands_generator.rb |