lib/multi_sync/configuration.rb in multi_sync-0.0.1 vs lib/multi_sync/configuration.rb in multi_sync-0.0.2

- old
+ new

@@ -2,11 +2,11 @@ require 'fog' require 'celluloid' module MultiSync class Configuration - include Virtus + include Virtus.model attribute :verbose, Boolean, default: false attribute :force, Boolean, default: false attribute :run_on_build, Boolean, default: true attribute :delete_abandoned_files, Boolean, default: true @@ -16,14 +16,12 @@ attribute :credentials, Hash, default: :fog_credentials # Initialize a new Configuration object # # @param options [Hash] - def initialize(options = {}) + def initialize(*args) Celluloid.logger = MultiSync.test? ? nil : MultiSync.logger - options.each_pair do |key, value| - send("#{key}=", value) if attributes.keys.include?(key) - end + super end def celluloid_cores Celluloid.cores end