Class: Fastlane::PluginInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(plugin_name, author, email, summary, details) ⇒ PluginInfo

Returns a new instance of PluginInfo.


10
11
12
13
14
15
16
# File 'fastlane/lib/fastlane/plugins/plugin_info.rb', line 10

def initialize(plugin_name, author, email, summary, details)
  @plugin_name = plugin_name
  @author = author
  @email = email
  @summary = summary
  @details = details
end

Instance Attribute Details

#authorObject (readonly)

Returns the value of attribute author


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

def author
  @author
end

#detailsObject (readonly)

Returns the value of attribute details


8
9
10
# File 'fastlane/lib/fastlane/plugins/plugin_info.rb', line 8

def details
  @details
end

#emailObject (readonly)

Returns the value of attribute email


6
7
8
# File 'fastlane/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 'fastlane/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 'fastlane/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 'fastlane/lib/fastlane/plugins/plugin_info.rb', line 7

def summary
  @summary
end

Instance Method Details

#==(other) ⇒ Object

rubocop:enable Style/AccessorMethodName


42
43
44
45
46
47
# File 'fastlane/lib/fastlane/plugins/plugin_info.rb', line 42

def ==(other)
  @plugin_name == other.plugin_name &&
    @author == other.author &&
    @email == other.email &&
    @summary == other.summary
end

#actions_pathObject


26
27
28
# File 'fastlane/lib/fastlane/plugins/plugin_info.rb', line 26

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


37
38
39
# File 'fastlane/lib/fastlane/plugins/plugin_info.rb', line 37

def get_binding
  binding
end

#helper_pathObject


30
31
32
# File 'fastlane/lib/fastlane/plugins/plugin_info.rb', line 30

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

#require_pathObject


22
23
24
# File 'fastlane/lib/fastlane/plugins/plugin_info.rb', line 22

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