Class: Herdic::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/herdic.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



22
23
24
25
26
27
28
29
# File 'lib/herdic.rb', line 22

def initialize
  @pwd               = File.expand_path '.'
  @herdic_path       = File.expand_path '~/.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_filenameObject

Returns the value of attribute config_filename.



15
16
17
# File 'lib/herdic.rb', line 15

def config_filename
  @config_filename
end

#edit_request_fileObject

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

#editorObject

Returns the value of attribute editor.



15
16
17
# File 'lib/herdic.rb', line 15

def editor
  @editor
end

#herdic_pathObject

Returns the value of attribute herdic_path.



15
16
17
# File 'lib/herdic.rb', line 15

def herdic_path
  @herdic_path
end

#pwdObject

Returns the value of attribute pwd.



15
16
17
# File 'lib/herdic.rb', line 15

def pwd
  @pwd
end

#store_pathObject

Returns the value of attribute store_path.



15
16
17
# File 'lib/herdic.rb', line 15

def store_path
  @store_path
end