fastlane/lib/fastlane/actions/artifactory.rb in fastlane-2.74.1 vs fastlane/lib/fastlane/actions/artifactory.rb in fastlane-2.75.0.beta.20180109010003
- old
+ new
@@ -9,11 +9,11 @@
def self.run(params)
Actions.verify_gem!('artifactory')
require 'artifactory'
file_path = File.absolute_path(params[:file])
- if File.exist? file_path
+ if File.exist?(file_path)
client = connect_to_artifactory(params)
artifact = Artifactory::Resource::Artifact.new
artifact.client = client
artifact.local_path = file_path
artifact.checksums = {
@@ -37,10 +37,10 @@
end
def self.connect_to_artifactory(params)
config_keys = [:endpoint, :username, :password, :ssl_pem_file, :ssl_verify, :proxy_username, :proxy_password, :proxy_address, :proxy_port]
config = params.values.select do |key|
- config_keys.include? key
+ config_keys.include?(key)
end
Artifactory::Client.new(config)
end
def self.description