Method: Fastlane::Actions::CodeStaticAnalyzerAction.is_installed

Defined in:
lib/fastlane/plugin/code_static_analyzer/actions/code_static_analyzer_action.rb

.is_installed(command_name, for_analyzer) ⇒ Object



166
167
168
169
170
171
172
173
174
# File 'lib/fastlane/plugin/code_static_analyzer/actions/code_static_analyzer_action.rb', line 166

def self.is_installed(command_name, for_analyzer)
  @checked_pmd = false
  begin
    Actions.sh("which #{command_name}") #pmd
  rescue
    UI.user_error! "#{command_name} not installed. Please, install #{command_name} for using #{for_analyzer}."
  end
  @checked_pmd = true
end