lib/geny/command.rb in geny-1.0.0 vs lib/geny/command.rb in geny-1.0.1
- old
+ new
@@ -15,16 +15,21 @@
# The root directory for the command
# @return [String]
attr_reader :root
+ # The registry that was used to find this command
+ # @return [Registry]
+ attr_reader :registry
+
# Create a new command
# @param registry [Registry] registry used to find this command
# @param name [String] name of the command
# @param root [String] name of the command
def initialize(name:, root:, registry:)
@name = name
@root = root
+ @registry = registry
end
# The path where the command is located
# @return [String]
def file