Class: Herdic::Configuration
- Inherits:
-
Object
- Object
- Herdic::Configuration
- Defined in:
- lib/herdic.rb
Instance Attribute Summary collapse
-
#config_filename ⇒ Object
Returns the value of attribute config_filename.
-
#edit_request_file ⇒ Object
Returns the value of attribute edit_request_file.
-
#editor ⇒ Object
Returns the value of attribute editor.
-
#herdic_path ⇒ Object
Returns the value of attribute herdic_path.
-
#pwd ⇒ Object
Returns the value of attribute pwd.
-
#store_path ⇒ Object
Returns the value of attribute store_path.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
22 23 24 25 26 27 28 29 |
# File 'lib/herdic.rb', line 22 def initialize @pwd = File. '.' @herdic_path = File. '~/.herdic' @store_path = File.join @herdic_path, 'store' @edit_request_file = File.join @herdic_path, 'edit_request.yaml' @config_filename = 'herdic.yaml' @editor = '/usr/bin/env vim' end |
Instance Attribute Details
#config_filename ⇒ Object
Returns the value of attribute config_filename.
15 16 17 |
# File 'lib/herdic.rb', line 15 def config_filename @config_filename end |
#edit_request_file ⇒ Object
Returns the value of attribute edit_request_file.
15 16 17 |
# File 'lib/herdic.rb', line 15 def edit_request_file @edit_request_file end |
#editor ⇒ Object
Returns the value of attribute editor.
15 16 17 |
# File 'lib/herdic.rb', line 15 def editor @editor end |
#herdic_path ⇒ Object
Returns the value of attribute herdic_path.
15 16 17 |
# File 'lib/herdic.rb', line 15 def herdic_path @herdic_path end |
#pwd ⇒ Object
Returns the value of attribute pwd.
15 16 17 |
# File 'lib/herdic.rb', line 15 def pwd @pwd end |
#store_path ⇒ Object
Returns the value of attribute store_path.
15 16 17 |
# File 'lib/herdic.rb', line 15 def store_path @store_path end |