Sha256: 5fa670bb2ad2d76adfdb522f4712a023426af3053fdf3560a95eb81e5d6a2dc4
Contents?: true
Size: 1.21 KB
Versions: 6
Compression:
Stored size: 1.21 KB
Contents
module Filbunke class Repository attr_accessor :name, :host, :port, :local_path, :file_umask, :directory_umask, :user, :pass, :hadoop_binary, :run_every, :hydra_concurrency, :batch_size def initialize(repository_config) @name = repository_config["filbunke_server_repository"] @host = repository_config["filbunke_server_host"] @port = repository_config["filbunke_server_port"] @local_path = repository_config["local_path"] @file_umask = repository_config["file_umask"].to_i @directory_umask = repository_config["directory_umask"].to_i @user = repository_config["file_url_username"] @pass = repository_config["file_url_password"] @hadoop_binary = repository_config["hadoop_binary"] @run_every = repository_config.fetch("run_every", 10).to_i @hydra_concurrency = repository_config.fetch("hydra_concurrency", 100).to_i @batch_size = repository_config.fetch("batch_size", 0).to_i end end class ConfigurationError < StandardError end end
Version data entries
6 entries across 6 versions & 1 rubygems