Class: Homebrew::Cmd::Log

Inherits:
AbstractCommand show all
Includes:
FileUtils
Defined in:
cmd/log.rb

Instance Attribute Summary

Attributes inherited from AbstractCommand

#args

Instance Method Summary collapse

Methods inherited from AbstractCommand

command, command_name, #initialize, parser

Constructor Details

This class inherits a constructor from Homebrew::AbstractCommand

Instance Method Details

#runvoid

This method returns an undefined value.



39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'cmd/log.rb', line 39

def run
  # As this command is simplifying user-run commands then let's just use a
  # user path, too.
  ENV["PATH"] = PATH.new(ORIGINAL_PATHS).to_s

  if args.no_named?
    git_log(HOMEBREW_REPOSITORY)
  else
    path = T.must(args.named.to_paths.first)
    tap = Tap.from_path(path)
    git_log path.dirname, path, tap
  end
end