Class: HealthInspector::Checklists::Cookbooks::Cookbook

Inherits:
Struct
  • Object
show all
Defined in:
lib/health_inspector/checklists/cookbooks.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bad_filesObject

Returns the value of attribute bad_files

Returns:

  • (Object)

    the current value of bad_files



49
50
51
# File 'lib/health_inspector/checklists/cookbooks.rb', line 49

def bad_files
  @bad_files
end

#local_versionObject

Returns the value of attribute local_version

Returns:

  • (Object)

    the current value of local_version



49
50
51
# File 'lib/health_inspector/checklists/cookbooks.rb', line 49

def local_version
  @local_version
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



49
50
51
# File 'lib/health_inspector/checklists/cookbooks.rb', line 49

def name
  @name
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



49
50
51
# File 'lib/health_inspector/checklists/cookbooks.rb', line 49

def path
  @path
end

#server_versionObject

Returns the value of attribute server_version

Returns:

  • (Object)

    the current value of 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

Returns:

  • (Boolean)


50
51
52
# File 'lib/health_inspector/checklists/cookbooks.rb', line 50

def git_repo?
  self.path && File.exist?("#{self.path}/.git")
end