Class: Fastlane::Helper::PhraseappHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/fastlane/plugin/phraseapp/helper/phraseapp_helper.rb

Class Method Summary collapse

Class Method Details

.cli_exist?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/fastlane/plugin/phraseapp/helper/phraseapp_helper.rb', line 12

def self.cli_exist?
  !phrase.to_s.empty?
end

.execute(command:) ⇒ Object



8
9
10
# File 'lib/fastlane/plugin/phraseapp/helper/phraseapp_helper.rb', line 8

def self.execute(command:)
  `#{phrase} #{command}`
end

.phraseObject



16
17
18
# File 'lib/fastlane/plugin/phraseapp/helper/phraseapp_helper.rb', line 16

def self.phrase
  `which phraseapp`.gsub("\n", '')
end