lib/qonfig/commands/expose_yaml.rb in qonfig-0.13.0 vs lib/qonfig/commands/expose_yaml.rb in qonfig-0.14.0
- old
+ new
@@ -95,11 +95,11 @@
envname = [env.to_s, extname].reject(&:empty?).join('')
envfile = [basename, envname].reject(&:empty?).join('.')
realfile = dirname.join(envfile).to_s
yaml_data = load_yaml_data(realfile)
- yaml_based_settings = build_data_set_class(yaml_data).new.settings
+ yaml_based_settings = build_data_set_klass(yaml_data).new.settings
settings.__append_settings__(yaml_based_settings)
end
# rubocop:enable Metrics/AbcSize
@@ -125,11 +125,11 @@
raise(
Qonfig::IncompatibleYAMLStructureError,
'YAML content should have a hash-like structure'
) unless yaml_data_slice.is_a?(Hash)
- yaml_based_settings = build_data_set_class(yaml_data_slice).new.settings
+ yaml_based_settings = build_data_set_klass(yaml_data_slice).new.settings
settings.__append_settings__(yaml_based_settings)
end
# rubocop:enable Metrics/AbcSize
@@ -152,9 +152,9 @@
# @param yaml_data [Hash]
# @return [Class<Qonfig::DataSet>]
#
# @api private
# @since 0.7.0
- def build_data_set_class(yaml_data)
+ def build_data_set_klass(yaml_data)
Qonfig::DataSet::ClassBuilder.build_from_hash(yaml_data)
end
end