Class: Fastlane::PluginInfo
- Inherits:
-
Object
- Object
- Fastlane::PluginInfo
- Defined in:
- lib/fastlane/plugins/plugin_info.rb
Instance Attribute Summary collapse
-
#author ⇒ Object
readonly
Returns the value of attribute author.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#gem_name ⇒ Object
readonly
Returns the value of attribute gem_name.
-
#plugin_name ⇒ Object
readonly
Returns the value of attribute plugin_name.
-
#summary ⇒ Object
readonly
Returns the value of attribute summary.
Instance Method Summary collapse
-
#==(other) ⇒ Object
rubocop:enable Style/AccessorMethodName.
- #actions_path ⇒ Object
-
#get_binding ⇒ Object
Used to expose a local binding for use in ERB templating.
- #helper_path ⇒ Object
-
#initialize(plugin_name, author, email, summary) ⇒ PluginInfo
constructor
A new instance of PluginInfo.
- #require_path ⇒ Object
Constructor Details
#initialize(plugin_name, author, email, summary) ⇒ PluginInfo
Returns a new instance of PluginInfo.
9 10 11 12 13 14 |
# File 'lib/fastlane/plugins/plugin_info.rb', line 9 def initialize(plugin_name, , email, summary) @plugin_name = plugin_name @author = @email = email @summary = summary end |
Instance Attribute Details
#author ⇒ Object (readonly)
Returns the value of attribute author.
4 5 6 |
# File 'lib/fastlane/plugins/plugin_info.rb', line 4 def @author end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
6 7 8 |
# File 'lib/fastlane/plugins/plugin_info.rb', line 6 def email @email end |
#gem_name ⇒ Object (readonly)
Returns the value of attribute gem_name.
5 6 7 |
# File 'lib/fastlane/plugins/plugin_info.rb', line 5 def gem_name @gem_name end |
#plugin_name ⇒ Object (readonly)
Returns the value of attribute plugin_name.
3 4 5 |
# File 'lib/fastlane/plugins/plugin_info.rb', line 3 def plugin_name @plugin_name end |
#summary ⇒ Object (readonly)
Returns the value of attribute summary.
7 8 9 |
# File 'lib/fastlane/plugins/plugin_info.rb', line 7 def summary @summary end |
Instance Method Details
#==(other) ⇒ Object
rubocop:enable Style/AccessorMethodName
40 41 42 43 44 45 |
# File 'lib/fastlane/plugins/plugin_info.rb', line 40 def ==(other) @plugin_name == other.plugin_name && @author == other. && @email == other.email && @summary == other.summary end |
#actions_path ⇒ Object
24 25 26 |
# File 'lib/fastlane/plugins/plugin_info.rb', line 24 def actions_path File.join(require_path, 'actions') end |
#get_binding ⇒ Object
Used to expose a local binding for use in ERB templating
rubocop:disable Style/AccessorMethodName
35 36 37 |
# File 'lib/fastlane/plugins/plugin_info.rb', line 35 def get_binding binding end |
#helper_path ⇒ Object
28 29 30 |
# File 'lib/fastlane/plugins/plugin_info.rb', line 28 def helper_path File.join(require_path, 'helper') end |
#require_path ⇒ Object
20 21 22 |
# File 'lib/fastlane/plugins/plugin_info.rb', line 20 def require_path gem_name.tr('-', '/') end |