Class: CodespicuousConfig
- Inherits:
-
Object
- Object
- CodespicuousConfig
- Defined in:
- lib/codespicuous/codespicuous_config.rb
Instance Attribute Summary collapse
-
#configuration_file_name ⇒ Object
Returns the value of attribute configuration_file_name.
-
#input_path ⇒ Object
Returns the value of attribute input_path.
-
#list_repositories ⇒ Object
Returns the value of attribute list_repositories.
-
#offline ⇒ Object
Returns the value of attribute offline.
-
#output_path ⇒ Object
Returns the value of attribute output_path.
Instance Method Summary collapse
-
#initialize ⇒ CodespicuousConfig
constructor
A new instance of CodespicuousConfig.
- #path_to_cached_svn_log(repository_name) ⇒ Object
- #path_to_cached_svn_log_dir ⇒ Object
- #path_to_configuration_file ⇒ Object
Constructor Details
#initialize ⇒ CodespicuousConfig
Returns a new instance of CodespicuousConfig.
8 9 10 11 12 13 14 |
# File 'lib/codespicuous/codespicuous_config.rb', line 8 def initialize @offline = false @configuration_file_name = "codespicuous.yaml" @input_path = Pathname.new(".") @list_repositories = false @svnlogdir = "svnlog" end |
Instance Attribute Details
#configuration_file_name ⇒ Object
Returns the value of attribute configuration_file_name.
6 7 8 |
# File 'lib/codespicuous/codespicuous_config.rb', line 6 def configuration_file_name @configuration_file_name end |
#input_path ⇒ Object
Returns the value of attribute input_path.
6 7 8 |
# File 'lib/codespicuous/codespicuous_config.rb', line 6 def input_path @input_path end |
#list_repositories ⇒ Object
Returns the value of attribute list_repositories.
6 7 8 |
# File 'lib/codespicuous/codespicuous_config.rb', line 6 def list_repositories @list_repositories end |
#offline ⇒ Object
Returns the value of attribute offline.
6 7 8 |
# File 'lib/codespicuous/codespicuous_config.rb', line 6 def offline @offline end |
#output_path ⇒ Object
Returns the value of attribute output_path.
6 7 8 |
# File 'lib/codespicuous/codespicuous_config.rb', line 6 def output_path @output_path end |
Instance Method Details
#path_to_cached_svn_log(repository_name) ⇒ Object
28 29 30 |
# File 'lib/codespicuous/codespicuous_config.rb', line 28 def path_to_cached_svn_log(repository_name) (Pathname.new(path_to_cached_svn_log_dir) + Pathname.new(repository_name + ".log")).to_s end |
#path_to_cached_svn_log_dir ⇒ Object
32 33 34 |
# File 'lib/codespicuous/codespicuous_config.rb', line 32 def path_to_cached_svn_log_dir (@input_path + Pathname.new(@svnlogdir)).to_s end |
#path_to_configuration_file ⇒ Object
24 25 26 |
# File 'lib/codespicuous/codespicuous_config.rb', line 24 def path_to_configuration_file (@input_path + @configuration_file_name).to_s end |