Class: Fastlane::Actions::InstallBrewDependenciesAction

Inherits:
Action
  • Object
show all
Defined in:
lib/fastlane/plugin/yalantis_ci/actions/install_brew_dependencies.rb

Class Method Summary collapse

Class Method Details

.authorsObject



9
10
11
# File 'lib/fastlane/plugin/yalantis_ci/actions/install_brew_dependencies.rb', line 9

def self.authors
  ["Dima Vorona", "Yalantis"]
end

.is_supported?(platform) ⇒ Boolean



13
14
15
# File 'lib/fastlane/plugin/yalantis_ci/actions/install_brew_dependencies.rb', line 13

def self.is_supported?(platform)
  true
end

.run(params) ⇒ Object



4
5
6
7
# File 'lib/fastlane/plugin/yalantis_ci/actions/install_brew_dependencies.rb', line 4

def self.run(params)
    	brewfile = File.join(ENV['PWD'], 'Brewfile')
    	sh('brew', 'bundle', '--file', Shellwords.escape(brewfile), '--no-upgrade') if File.exists?(brewfile)
end