Skip to content

Commit

Permalink
Print file permissions and compact output
Browse files Browse the repository at this point in the history
  • Loading branch information
dalen committed Feb 17, 2016
1 parent 06924fb commit 274f711
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/puppet/face/ls.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@
description = "content from #{source}" unless source.nil?
end

puts "#{colorize(color, rel_path)}\n declared in #{file.file}:#{file.line}\n"
puts colorize(color, rel_path)
puts " #{file.file}:#{file.line}\n"
puts " #{file[:owner]||'undef'}:#{file[:group]||'undef'} #{file[:mode]}"
puts " #{description}" if description
end
nil
Expand Down

0 comments on commit 274f711

Please sign in to comment.