lib/command/fetch.rb in cocoapods-binary-artifactory-cache-0.0.2 vs lib/command/fetch.rb in cocoapods-binary-artifactory-cache-0.0.3

- old
+ new

@@ -4,10 +4,16 @@ module Pod class Command class Binary < Command class Fetch < Binary self.arguments = [CLAide::Argument.new("CACHE-BRANCH", false)] + def self.options + [ + ["--repo-update", "Update pod repo before installing"] + ].concat(super) + end + def initialize(argv) super unless ENV['ARTIFACTORY_LOGIN'].nil? && ENV['ARTIFACTORY_PASSWORD'].nil? update_cli_config( :artifactory_login => ENV['ARTIFACTORY_LOGIN'], @@ -26,9 +32,10 @@ update_cli_config( :fetch_job => true ) @fetcher = PodPrebuild::CacheFetcher.new( config: prebuild_config, + repo_update: argv.flag?("repo-update") ) end def run @fetcher.run