Class: Gorgon::Settings::FilesContent

Inherits:
Object
  • Object
show all
Defined in:
lib/gorgon/settings/files_content.rb

Constant Summary collapse

TEST_UNIT_GLOB =
"test/**/*_test.rb"
RSPEC_GLOB =
"spec/**/*_spec.rb"
DEFAULT_HOST =
'localhost'

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFilesContent

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_hostObject

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

#callbacksObject

Returns the value of attribute callbacks.



4
5
6
# File 'lib/gorgon/settings/files_content.rb', line 4

def callbacks
  @callbacks
end

#failed_filesObject

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_hostObject

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

#filesObject

Returns the value of attribute files.



4
5
6
# File 'lib/gorgon/settings/files_content.rb', line 4

def files
  @files
end

#originator_log_fileObject

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_fileObject

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_excludeObject

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_hostObject



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_hostObject



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