Module: Harmoni
- Defined in:
- lib/harmoni.rb,
lib/harmoni/config.rb,
lib/harmoni/version.rb,
lib/harmoni/types/json.rb,
lib/harmoni/types/yaml.rb
Defined Under Namespace
Classes: Config, JSON, YAML
Constant Summary
collapse
- VERSION =
'0.1.0'.freeze
Class Method Summary
collapse
Class Method Details
.build(path, *args, **opts) ⇒ Object
10
11
12
13
|
# File 'lib/harmoni.rb', line 10
def self.build(path, *args, **opts)
type = opts[:type] || Config.detect_type(path)
Config.new(*args, opts.merge(type: type, path: path))
end
|
.sync(file, *args, **opts) ⇒ Object
15
16
17
|
# File 'lib/harmoni.rb', line 15
def self.sync(file, *args, **opts)
build(file, *args, opts.merge(sync: true))
end
|