Class: Fastlane::FastlanePlugin

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ FastlanePlugin

Returns a new instance of FastlanePlugin.



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

def initialize(hash)
  self.full_name = hash["name"]
  self.name = self.full_name.gsub(PluginManager.plugin_prefix, '')
  self.downloads = hash["downloads"]
  self.info = hash["info"]
  self.homepage = hash["homepage_uri"]
end

Instance Attribute Details

#downloadsObject

Returns the value of attribute downloads.



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

def downloads
  @downloads
end

#full_nameObject

Returns the value of attribute full_name.



35
36
37
# File 'fastlane/lib/fastlane/plugins/plugin_fetcher.rb', line 35

def full_name
  @full_name
end

#homepageObject

Returns the value of attribute homepage.



39
40
41
# File 'fastlane/lib/fastlane/plugins/plugin_fetcher.rb', line 39

def homepage
  @homepage
end

#infoObject

Returns the value of attribute info.



38
39
40
# File 'fastlane/lib/fastlane/plugins/plugin_fetcher.rb', line 38

def info
  @info
end

#nameObject

Returns the value of attribute name.



36
37
38
# File 'fastlane/lib/fastlane/plugins/plugin_fetcher.rb', line 36

def name
  @name
end

Instance Method Details

#linked_titleObject



49
50
51
52
# File 'fastlane/lib/fastlane/plugins/plugin_fetcher.rb', line 49

def linked_title
  return "`#{name}`" if homepage.to_s.length == 0
  return "[#{name}](#{homepage})"
end