Commit 547e7e89 authored by Olivier Halligon's avatar Olivier Halligon

shush rubocop

parent 77a563d9
...@@ -28,7 +28,7 @@ module Pod ...@@ -28,7 +28,7 @@ module Pod
spec_files.reduce({}) do |hash, spec_file| spec_files.reduce({}) do |hash, spec_file|
spec = Specification.from_file(spec_file) spec = Specification.from_file(spec_file)
hash[spec.name] = {} if hash[spec.name].nil? hash[spec.name] = {} if hash[spec.name].nil?
release = spec_file.to_s.start_with? (specs_dir + 'Release').to_s release = spec_file.to_s.start_with?((specs_dir + 'Release').to_s)
request = Downloader::Request.new(:spec => spec, :released => release) request = Downloader::Request.new(:spec => spec, :released => release)
hash[spec.name][spec_file] = request hash[spec.name][spec_file] = request
hash hash
...@@ -49,7 +49,7 @@ module Pod ...@@ -49,7 +49,7 @@ module Pod
def self.options def self.options
[[ [[
'--short', 'Only print the path relative to the cache root', '--short', 'Only print the path relative to the cache root'
]].concat(super) ]].concat(super)
end end
...@@ -59,10 +59,9 @@ module Pod ...@@ -59,10 +59,9 @@ module Pod
super super
end end
def run def run
UI.puts("Cache root: #{@cache_root}") if @short_output UI.puts("Cache root: #{@cache_root}") if @short_output
if (@podname.nil?) # Print all if @podname.nil? # Print all
cache_requests_per_pod.each do |pod, list| cache_requests_per_pod.each do |pod, list|
UI.title pod UI.title pod
print_pod_cache_list(list) print_pod_cache_list(list)
...@@ -90,12 +89,11 @@ module Pod ...@@ -90,12 +89,11 @@ module Pod
type = request.released_pod? ? 'Release' : 'External' type = request.released_pod? ? 'Release' : 'External'
UI.section("#{request.spec.version} (#{type})") do UI.section("#{request.spec.version} (#{type})") do
UI.labeled('Spec', @short_output ? spec_file.relative_path_from(@cache_root) : spec_file) UI.labeled('Spec', @short_output ? spec_file.relative_path_from(@cache_root) : spec_file)
UI.labeled('Pod', @short_output ? request.slug : @cache_root+request.slug) UI.labeled('Pod', @short_output ? request.slug : @cache_root + request.slug)
end end
end end
end end
end end
end end
end end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment