lib/ghost_adapter/config.rb in ghost_adapter-0.0.2 vs lib/ghost_adapter/config.rb in ghost_adapter-0.1.0
- old
+ new
@@ -82,9 +82,14 @@
env_config = EnvParser.new(ENV).config
config_options = options.merge(env_config)
super(config_options)
end
+ def merge!(other_config)
+ other_config.compact.each { |k, v| self[k] = v }
+ self
+ end
+
def compact
to_h.compact
end
def as_args