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

Version Path
gorgon-0.7.0 lib/gorgon/settings/files_content.rb
gorgon-0.7.0.rc4 lib/gorgon/settings/files_content.rb
gorgon-0.7.0.rc3 lib/gorgon/settings/files_content.rb
gorgon-0.7.0.rc2 lib/gorgon/settings/files_content.rb
gorgon-0.7.0.rc1 lib/gorgon/settings/files_content.rb
gorgon-0.6.5 lib/gorgon/settings/files_content.rb
gorgon-0.6.4 lib/gorgon/settings/files_content.rb
gorgon-0.6.3 lib/gorgon/settings/files_content.rb
gorgon-0.6.2 lib/gorgon/settings/files_content.rb
gorgon-0.6.1 lib/gorgon/settings/files_content.rb
gorgon-0.6.0 lib/gorgon/settings/files_content.rb
gorgon-0.6.0.rc2 lib/gorgon/settings/files_content.rb
gorgon-0.6.0.rc1 lib/gorgon/settings/files_content.rb
gorgon-0.5.0.rc1 lib/gorgon/settings/files_content.rb
gorgon-0.4.5 lib/gorgon/settings/files_content.rb
gorgon-0.4.5.rc1 lib/gorgon/settings/files_content.rb
gorgon-0.4.4 lib/gorgon/settings/files_content.rb
gorgon-0.4.3 lib/gorgon/settings/files_content.rb
gorgon-0.4.2 lib/gorgon/settings/files_content.rb
gorgon-0.4.1 lib/gorgon/settings/files_content.rb