Class: YKFastlane::SubCommandBase
- Inherits:
-
Thor
- Object
- Thor
- YKFastlane::SubCommandBase
show all
- Defined in:
- lib/actions/YKFastlaneExecute.rb
Class Method Summary
collapse
Class Method Details
.banner(command, namespace = nil, subcommand = false) ⇒ Object
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
10
11
12
|
# File 'lib/actions/YKFastlaneExecute.rb', line 10
def self.exit_on_failure?
true
end
|
.subcommand_prefix ⇒ Object
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
|