Class: YKFastlane::SubCommandBase

Inherits:
Thor
  • Object
show all
Defined in:
lib/actions/YKFastlaneExecute.rb

Direct Known Subclasses

Archive, Certificate, Init, Pod

Class Method Summary collapse

Class Method Details



14
15
16
# File 'lib/actions/YKFastlaneExecute.rb', line 14

def self.banner(command, namespace = nil, subcommand = false)
  "#{basename} #{subcommand_prefix} #{command.usage}"
end

.exit_on_failure?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/actions/YKFastlaneExecute.rb', line 10

def self.exit_on_failure?
  true
end

.subcommand_prefixObject



18
19
20
# File 'lib/actions/YKFastlaneExecute.rb', line 18

def self.subcommand_prefix
  self.name.gsub(%r{.*::}, '').gsub(%r{^[A-Z]}) { |match| match[0].downcase }.gsub(%r{[A-Z]}) { |match| "-#{match[0].downcase}" }
end