Class: Filbunke::Repository
- Inherits:
-
Object
- Object
- Filbunke::Repository
- Defined in:
- lib/filbunke/repository.rb
Instance Attribute Summary collapse
-
#batch_size ⇒ Object
Returns the value of attribute batch_size.
-
#directory_umask ⇒ Object
Returns the value of attribute directory_umask.
-
#file_umask ⇒ Object
Returns the value of attribute file_umask.
-
#hadoop_binary ⇒ Object
Returns the value of attribute hadoop_binary.
-
#host ⇒ Object
Returns the value of attribute host.
-
#hydra_concurrency ⇒ Object
Returns the value of attribute hydra_concurrency.
-
#local_path ⇒ Object
Returns the value of attribute local_path.
-
#name ⇒ Object
Returns the value of attribute name.
-
#pass ⇒ Object
Returns the value of attribute pass.
-
#port ⇒ Object
Returns the value of attribute port.
-
#run_every ⇒ Object
Returns the value of attribute run_every.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(repository_config) ⇒ Repository
constructor
A new instance of Repository.
Constructor Details
#initialize(repository_config) ⇒ Repository
Returns a new instance of Repository.
17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/filbunke/repository.rb', line 17 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 |
Instance Attribute Details
#batch_size ⇒ Object
Returns the value of attribute batch_size.
4 5 6 |
# File 'lib/filbunke/repository.rb', line 4 def batch_size @batch_size end |
#directory_umask ⇒ Object
Returns the value of attribute directory_umask.
4 5 6 |
# File 'lib/filbunke/repository.rb', line 4 def directory_umask @directory_umask end |
#file_umask ⇒ Object
Returns the value of attribute file_umask.
4 5 6 |
# File 'lib/filbunke/repository.rb', line 4 def file_umask @file_umask end |
#hadoop_binary ⇒ Object
Returns the value of attribute hadoop_binary.
4 5 6 |
# File 'lib/filbunke/repository.rb', line 4 def hadoop_binary @hadoop_binary end |
#host ⇒ Object
Returns the value of attribute host.
4 5 6 |
# File 'lib/filbunke/repository.rb', line 4 def host @host end |
#hydra_concurrency ⇒ Object
Returns the value of attribute hydra_concurrency.
4 5 6 |
# File 'lib/filbunke/repository.rb', line 4 def hydra_concurrency @hydra_concurrency end |
#local_path ⇒ Object
Returns the value of attribute local_path.
4 5 6 |
# File 'lib/filbunke/repository.rb', line 4 def local_path @local_path end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/filbunke/repository.rb', line 4 def name @name end |
#pass ⇒ Object
Returns the value of attribute pass.
4 5 6 |
# File 'lib/filbunke/repository.rb', line 4 def pass @pass end |
#port ⇒ Object
Returns the value of attribute port.
4 5 6 |
# File 'lib/filbunke/repository.rb', line 4 def port @port end |
#run_every ⇒ Object
Returns the value of attribute run_every.
4 5 6 |
# File 'lib/filbunke/repository.rb', line 4 def run_every @run_every end |
#user ⇒ Object
Returns the value of attribute user.
4 5 6 |
# File 'lib/filbunke/repository.rb', line 4 def user @user end |