Method: Repofetch::Gitlab.from_git
- Defined in:
- lib/repofetch/gitlab.rb
.from_git(git, args) ⇒ Object
Creates an instance from a Git::Base instance.
121 122 123 124 125 126 127 |
# File 'lib/repofetch/gitlab.rb', line 121 def self.from_git(git, args) raise Repofetch::PluginUsageError, 'Explicitly activate this plugin to CLI arguments' unless args.empty? path = repo_identifier(git) new(path) end |