Class: Settings::FilesContent
- Inherits:
-
Object
- Object
- Settings::FilesContent
- Defined in:
- lib/gorgon/settings/files_content.rb
Direct Known Subclasses
Constant Summary collapse
- TEST_UNIT_GLOB =
"test/**/*_test.rb"
- RSPEC_GLOB =
"spec/**/*_spec.rb"
- DEFAULT_AMQP_HOST =
'localhost'
Instance Attribute Summary collapse
-
#amqp_host ⇒ Object
Returns the value of attribute amqp_host.
-
#callbacks ⇒ Object
Returns the value of attribute callbacks.
-
#callbacks_dir ⇒ Object
Returns the value of attribute callbacks_dir.
-
#files ⇒ Object
Returns the value of attribute files.
-
#originator_log_file ⇒ Object
Returns the value of attribute originator_log_file.
-
#sync_exclude ⇒ Object
Returns the value of attribute sync_exclude.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ FilesContent
constructor
A new instance of FilesContent.
Constructor Details
#initialize ⇒ FilesContent
Returns a new instance of FilesContent.
9 10 11 12 13 |
# File 'lib/gorgon/settings/files_content.rb', line 9 def initialize @files = [] @files << FilesContent::TEST_UNIT_GLOB if Dir.exist?('test') @files << FilesContent::RSPEC_GLOB if Dir.exist?('spec') end |
Instance Attribute Details
#amqp_host ⇒ Object
Returns the value of attribute amqp_host.
3 4 5 |
# File 'lib/gorgon/settings/files_content.rb', line 3 def amqp_host @amqp_host end |
#callbacks ⇒ Object
Returns the value of attribute callbacks.
3 4 5 |
# File 'lib/gorgon/settings/files_content.rb', line 3 def callbacks @callbacks end |
#callbacks_dir ⇒ Object
Returns the value of attribute callbacks_dir.
3 4 5 |
# File 'lib/gorgon/settings/files_content.rb', line 3 def callbacks_dir @callbacks_dir end |
#files ⇒ Object
Returns the value of attribute files.
3 4 5 |
# File 'lib/gorgon/settings/files_content.rb', line 3 def files @files end |
#originator_log_file ⇒ Object
Returns the value of attribute originator_log_file.
3 4 5 |
# File 'lib/gorgon/settings/files_content.rb', line 3 def originator_log_file @originator_log_file end |
#sync_exclude ⇒ Object
Returns the value of attribute sync_exclude.
3 4 5 |
# File 'lib/gorgon/settings/files_content.rb', line 3 def sync_exclude @sync_exclude end |
Class Method Details
.get_amqp_host ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/gorgon/settings/files_content.rb', line 16 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 |