Class: Gorgon::Settings::FilesContent
- Inherits:
-
Object
- Object
- Gorgon::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_HOST =
'localhost'
Instance Attribute Summary collapse
-
#amqp_host ⇒ Object
Returns the value of attribute amqp_host.
-
#callbacks ⇒ Object
Returns the value of attribute callbacks.
-
#failed_files ⇒ Object
Returns the value of attribute failed_files.
-
#file_server_host ⇒ Object
Returns the value of attribute file_server_host.
-
#files ⇒ Object
Returns the value of attribute files.
-
#originator_log_file ⇒ Object
Returns the value of attribute originator_log_file.
-
#runtime_file ⇒ Object
Returns the value of attribute runtime_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.
10 11 12 13 14 15 |
# File 'lib/gorgon/settings/files_content.rb', line 10 def initialize @files = [] @files << FilesContent::TEST_UNIT_GLOB if Dir.exist?('test') @files << FilesContent::RSPEC_GLOB if Dir.exist?('spec') @runtime_file = 'gorgon-runtime-file.json' end |
Instance Attribute Details
#amqp_host ⇒ Object
Returns the value of attribute amqp_host.
4 5 6 |
# File 'lib/gorgon/settings/files_content.rb', line 4 def amqp_host @amqp_host end |
#callbacks ⇒ Object
Returns the value of attribute callbacks.
4 5 6 |
# File 'lib/gorgon/settings/files_content.rb', line 4 def callbacks @callbacks end |
#failed_files ⇒ Object
Returns the value of attribute failed_files.
4 5 6 |
# File 'lib/gorgon/settings/files_content.rb', line 4 def failed_files @failed_files end |
#file_server_host ⇒ Object
Returns the value of attribute file_server_host.
4 5 6 |
# File 'lib/gorgon/settings/files_content.rb', line 4 def file_server_host @file_server_host end |
#files ⇒ Object
Returns the value of attribute files.
4 5 6 |
# File 'lib/gorgon/settings/files_content.rb', line 4 def files @files end |
#originator_log_file ⇒ Object
Returns the value of attribute originator_log_file.
4 5 6 |
# File 'lib/gorgon/settings/files_content.rb', line 4 def originator_log_file @originator_log_file end |
#runtime_file ⇒ Object
Returns the value of attribute runtime_file.
4 5 6 |
# File 'lib/gorgon/settings/files_content.rb', line 4 def runtime_file @runtime_file end |
#sync_exclude ⇒ Object
Returns the value of attribute sync_exclude.
4 5 6 |
# File 'lib/gorgon/settings/files_content.rb', line 4 def sync_exclude @sync_exclude end |
Class Method Details
.get_amqp_host ⇒ Object
18 19 20 21 |
# File 'lib/gorgon/settings/files_content.rb', line 18 def self.get_amqp_host puts "What's the AMQP host name? (leave blank to use '#{DEFAULT_HOST}') " return get_input_or_default(DEFAULT_HOST) end |
.get_file_server_host ⇒ Object
23 24 25 26 |
# File 'lib/gorgon/settings/files_content.rb', line 23 def self.get_file_server_host puts "What's the File Server host name? (leave blank to use '#{DEFAULT_HOST}') " return get_input_or_default(DEFAULT_HOST) end |