lib/giteaucrat/runner.rb in giteaucrat-0.0.1 vs lib/giteaucrat/runner.rb in giteaucrat-0.0.2

- old
+ new

@@ -55,11 +55,11 @@ desc 'copyrights', 'Update copyright information in files' def copyrights repo.write_copyrights! - repo.commit("#{defaults[:commit_keyword]}: Update copyrights in source code") if options[:commit] + repo.commit!("#{defaults[:commit_keyword]}: Update copyrights in source code") if options[:commit] FileUtils.mkdir_p(::File.join(path, 'tmp')) ::File.write(::File.join(path, 'tmp', 'giteaucrat_authors.yml'), Author.to_yaml) end private @@ -77,10 +77,10 @@ config = YAML.load_file(options[:config]) || {} options.merge!(config) end config = options.inject({}) do |config, (key, value)| - config[key] = value unless %w(config git path timeout).include?(key); config + config[key] = value unless %w(config git path timeout commit).include?(key); config end.to_yaml unless ::File.file?(options[:config]) FileUtils.mkdir_p(::File.dirname(options[:config])) ::File.write(options[:config], config)