Class: Harnex::Config::RepoConfig
- Inherits:
-
Struct
- Object
- Struct
- Harnex::Config::RepoConfig
- Defined in:
- lib/harnex/config.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#path ⇒ Object
Returns the value of attribute path.
-
#root ⇒ Object
Returns the value of attribute root.
Instance Method Summary collapse
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data
25 26 27 |
# File 'lib/harnex/config.rb', line 25 def data @data end |
#path ⇒ Object
Returns the value of attribute path
25 26 27 |
# File 'lib/harnex/config.rb', line 25 def path @path end |
#root ⇒ Object
Returns the value of attribute root
25 26 27 |
# File 'lib/harnex/config.rb', line 25 def root @root end |
Instance Method Details
#phase ⇒ Object
30 31 32 |
# File 'lib/harnex/config.rb', line 30 def phase data.is_a?(Hash) ? data["phase"] : nil end |
#present? ⇒ Boolean
26 27 28 |
# File 'lib/harnex/config.rb', line 26 def present? !path.nil? && File.file?(path) end |
#retention ⇒ Object
34 35 36 |
# File 'lib/harnex/config.rb', line 34 def retention data.is_a?(Hash) ? data["retention"] : nil end |