Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discover external commands through Bundler #910

Merged
merged 1 commit into from Jul 24, 2016
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.
+5 −0
Diff settings

Always

Just for now

Copy path View file
@@ -110,6 +110,11 @@ def self.setup_commands
cmd = load_command_at(cmd_filename)
add_command(cmd)
end

if defined?(Bundler)
# Discover external commands through Bundler
Bundler.require(:nanoc)

This comment has been minimized.

Copy link
@ddfreyne

ddfreyne Jul 13, 2016

Member

What happens if no nanoc group exists? What if it is empty?

A change without tests puts me off, but at the same time, I have no idea how to test this in an automated fashion.

This comment has been minimized.

Copy link
@whitequark

whitequark Jul 13, 2016

Author Member

Nothing. That's how this Bundler API works.

end
end

# Loads site-specific commands.
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.