Sha256: 61f0b560e83360eca52199c5bd773cfaa84c2f0c21a44d0b51f0ad4e1cf5287e
Contents?: true
Size: 668 Bytes
Versions: 21
Compression:
Stored size: 668 Bytes
Contents
module Settings class FilesContent attr_accessor :amqp_host, :sync_exclude, :files, :originator_log_file, :callbacks, :callbacks_dir TEST_UNIT_GLOB = "test/**/*_test.rb" RSPEC_GLOB = "spec/**/*_spec.rb" def initialize @files = [] @files << FilesContent::TEST_UNIT_GLOB if Dir.exist?('test') @files << FilesContent::RSPEC_GLOB if Dir.exist?('spec') end DEFAULT_AMQP_HOST = 'localhost' def self.get_amqp_host puts "AMQP host (default '#{DEFAULT_AMQP_HOST}')? " input = $stdin.gets.chomp if input == "" return DEFAULT_AMQP_HOST else return input end end end end
Version data entries
21 entries across 21 versions & 1 rubygems