Class: Fastlane::PluginInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/fastlane/plugins/plugin_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, author, email, summary)
  @plugin_name = plugin_name
  @author = author
  @email = email
  @summary = summary
end

Instance Attribute Details

#authorObject (readonly)

Returns the value of attribute author.



4
5
6
# File 'lib/fastlane/plugins/plugin_info.rb', line 4

def author
  @author
end

#emailObject (readonly)

Returns the value of attribute email.



6
7
8
# File 'lib/fastlane/plugins/plugin_info.rb', line 6

def email
  @email
end

#gem_nameObject (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_nameObject (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

#summaryObject (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.author &&
    @email == other.email &&
    @summary == other.summary
end

#actions_pathObject



24
25
26
# File 'lib/fastlane/plugins/plugin_info.rb', line 24

def actions_path
  File.join(require_path, 'actions')
end

#get_bindingObject

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_pathObject



28
29
30
# File 'lib/fastlane/plugins/plugin_info.rb', line 28

def helper_path
  File.join(require_path, 'helper')
end

#require_pathObject



20
21
22
# File 'lib/fastlane/plugins/plugin_info.rb', line 20

def require_path
  gem_name.tr('-', '/')
end