lib/hako/application.rb in hako-2.3.0 vs lib/hako/application.rb in hako-2.3.1

- old
+ new

@@ -13,11 +13,11 @@ # @return [Pathname] # @!attribute [r] definition # @return [Hash] attr_reader :id, :root_path, :definition - def initialize(yaml_path, expand_variables: true, ask_keys: false) - path = Pathname.new(yaml_path) + def initialize(definition_path, expand_variables: true, ask_keys: false) + path = Pathname.new(definition_path) @id = path.basename.sub_ext('').to_s @root_path = path.parent @definition = case path.extname when '.yml', '.yaml'