lib/brief.rb in brief-1.15.4 vs lib/brief.rb in brief-1.15.5
- old
+ new
@@ -76,10 +76,13 @@
lib_root.join("..","apps")
end
def self.load_commands
Dir[lib_root.join('brief', 'cli', '**/*.rb')].each { |f| require(f) }
+ create_command_dispatchers
+ end
+ def self.create_command_dispatchers
# Each Brief::Model can define certain "actions" which can be called on the documents.
#
# The Brief CLI interface lets users dispatch these actions to the documents specified by the PATH args.
Brief::Model.classes.each do |klass|
Array(klass.defined_actions).uniq.each do |action|