Module: CrowdFavorite::Tasks::WordPress

Extended by:
Support::Namespace
Defined in:
lib/crowdfavorite/tasks/wordpress.rb

Instance Method Summary collapse

Methods included from Support::Namespace

capistrano_definitions, default_config, default_config=, load_into, namespace

Instance Method Details

#_combine_filehash(base, update) ⇒ Object



20
21
22
23
24
25
26
27
28
29
30
# File 'lib/crowdfavorite/tasks/wordpress.rb', line 20

def _combine_filehash base, update
  if update.respond_to? :has_key?
    update = [update]
  end
  new = {}
  new.merge!(base)
  update.each do |update_hash|
    new.merge!(update_hash)
  end
  new
end