Sha256: 86b976d21555df6f5988a4949032440d02dda6a5a5f273f29ed7f6c0ab247caa

Contents?: true

Size: 1.3 KB

Versions: 5

Compression:

Stored size: 1.3 KB

Contents

## Quorum Settings ##
#
# DO NOT edit this file directly. To configure Quorum edit
# config/quorum_settings.yml.

## Load Quorum Setttings ##
settings = YAML.load_file(
  "#{::Rails.root.to_s}/config/quorum_settings.yml"
)[::Rails.env.to_s]

## Sub %{RAILS_ROOT} ##
settings.keys.each do |k|
  if settings[k.to_s].respond_to?(:each_value)
    settings[k.to_s].each_value do |v|
      if v.kind_of?(String)
        v.to_s.gsub!('%{RAILS_ROOT}', ::Rails.root.to_s)
      end
    end
  else
    if settings[k.to_s].kind_of?(String)
      settings[k.to_s].gsub!('%{RAILS_ROOT}', ::Rails.root.to_s)
    end
  end
end

## Quorum General Settings ##
Quorum.max_sequence_size = settings['max_sequence_size']

blast = settings['blast']

## Quorum Blast Settings ##
Quorum.blast_remote      = blast['remote']
Quorum.blast_ssh_host    = blast['ssh_host']
Quorum.blast_ssh_user    = blast['ssh_user']
Quorum.blast_ssh_options = blast['ssh_options']
Quorum.blast_bin         = blast['bin']
Quorum.blast_log_dir     = blast['log_dir']
Quorum.blast_tmp_dir     = blast['tmp_dir']
Quorum.blast_db          = blast['blast_db']
Quorum.tblastn           = blast['tblastn']
Quorum.blastp            = blast['blastp']
Quorum.blastn            = blast['blastn']
Quorum.blastx            = blast['blastx']
Quorum.blast_threads     = blast['blast_threads']

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
quorum-0.8.2 lib/generators/templates/quorum_initializer.rb
quorum-0.8.1 lib/generators/templates/quorum_initializer.rb
quorum-0.8.0 lib/generators/templates/quorum_initializer.rb
quorum-0.7.1 lib/generators/templates/quorum_initializer.rb
quorum-0.7.0 lib/generators/templates/quorum_initializer.rb