Class: FPM::Cookery::Package::Maintainer

Inherits:
Struct
  • Object
show all
Defined in:
lib/fpm/cookery/package/maintainer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#configObject

Returns the value of attribute config

Returns:

  • (Object)

    the current value of config



7
8
9
# File 'lib/fpm/cookery/package/maintainer.rb', line 7

def config
  @config
end

#recipeObject

Returns the value of attribute recipe

Returns:

  • (Object)

    the current value of recipe



7
8
9
# File 'lib/fpm/cookery/package/maintainer.rb', line 7

def recipe
  @recipe
end

Instance Method Details

#maintainerObject



8
9
10
# File 'lib/fpm/cookery/package/maintainer.rb', line 8

def maintainer
  config_maintainer || recipe_maintainer || git_maintainer || default_maintainer
end

#to_sObject Also known as: to_str



12
13
14
# File 'lib/fpm/cookery/package/maintainer.rb', line 12

def to_s
  maintainer
end