Skip to content

Commit

Permalink
Add plugin_description helper method
Browse files Browse the repository at this point in the history
  • Loading branch information
Fryguy committed May 3, 2019
1 parent 61804ab commit ef1a8ac
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions lib/generators/manageiq/plugin/plugin_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ def plugin_name
@plugin_name ||= plugin_path.tr("/", "-")
end

def plugin_description
@plugin_description ||= "#{file_name.titleize} plugin for #{Vmdb::Appliance.PRODUCT_NAME}"
end

def empty_directory_with_keep_file(destination, config = {})
empty_directory(destination, config)
keep_file(destination)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
spec.version = <%= class_name %>::VERSION
spec.authors = ["ManageIQ Authors"]
spec.summary = "<%= file_name.camelize %> plugin for ManageIQ"
spec.description = "<%= file_name.camelize %> plugin for ManageIQ"
spec.summary = "<%= plugin_description %>"
spec.description = "<%= plugin_description %>"
spec.homepage = "https://github.com/ManageIQ/<%= plugin_name %>"
spec.license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/manageiq/plugin/templates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[![Chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/ManageIQ/<%= plugin_name %>?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Translate](https://img.shields.io/badge/translate-zanata-blue.svg)](https://translate.zanata.org/zanata/project/view/<%= plugin_name %>)

<%= file_name.camelize %> plugin for ManageIQ.
<%= plugin_description %>

## Development

Expand Down

0 comments on commit ef1a8ac

Please sign in to comment.