Class: HealthInspector::Checklists::Cookbooks::Cookbook
- Inherits:
-
Struct
- Object
- Struct
- HealthInspector::Checklists::Cookbooks::Cookbook
- Defined in:
- lib/health_inspector/checklists/cookbooks.rb
Instance Attribute Summary collapse
-
#bad_files ⇒ Object
Returns the value of attribute bad_files.
-
#local_version ⇒ Object
Returns the value of attribute local_version.
-
#name ⇒ Object
Returns the value of attribute name.
-
#path ⇒ Object
Returns the value of attribute path.
-
#server_version ⇒ Object
Returns the value of attribute server_version.
Instance Method Summary collapse
Instance Attribute Details
#bad_files ⇒ Object
Returns the value of attribute bad_files
49 50 51 |
# File 'lib/health_inspector/checklists/cookbooks.rb', line 49 def bad_files @bad_files end |
#local_version ⇒ Object
Returns the value of attribute local_version
49 50 51 |
# File 'lib/health_inspector/checklists/cookbooks.rb', line 49 def local_version @local_version end |
#name ⇒ Object
Returns the value of attribute name
49 50 51 |
# File 'lib/health_inspector/checklists/cookbooks.rb', line 49 def name @name end |
#path ⇒ Object
Returns the value of attribute path
49 50 51 |
# File 'lib/health_inspector/checklists/cookbooks.rb', line 49 def path @path end |
#server_version ⇒ Object
Returns the value of attribute server_version
49 50 51 |
# File 'lib/health_inspector/checklists/cookbooks.rb', line 49 def server_version @server_version end |
Instance Method Details
#git_repo? ⇒ Boolean
50 51 52 |
# File 'lib/health_inspector/checklists/cookbooks.rb', line 50 def git_repo? self.path && File.exist?("#{self.path}/.git") end |