Sha256: c0b9bee8bbcf8c70174ab34e066ae37c1d3312479e29b21f5e601550208385e7

Contents?: true

Size: 1.05 KB

Versions: 1053

Compression:

Stored size: 1.05 KB

Contents

module Fastlane
  class PluginInfo
    attr_reader :plugin_name
    attr_reader :author
    attr_reader :gem_name
    attr_reader :email
    attr_reader :summary
    attr_reader :details

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

    def gem_name
      "#{Fastlane::PluginManager::FASTLANE_PLUGIN_PREFIX}#{plugin_name}"
    end

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

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

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

    # Used to expose a local binding for use in ERB templating
    #
    # rubocop:disable Style/AccessorMethodName
    def get_binding
      binding
    end
    # rubocop:enable Style/AccessorMethodName

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

Version data entries

1,053 entries across 1,053 versions & 2 rubygems

Version Path
fastlane-2.132.0.beta.20190927200017 fastlane/lib/fastlane/plugins/plugin_info.rb
fastlane-2.132.0.beta.20190926200023 fastlane/lib/fastlane/plugins/plugin_info.rb
fastlane-2.132.0.beta.20190925200108 fastlane/lib/fastlane/plugins/plugin_info.rb
fastlane-2.132.0.beta.20190924200030 fastlane/lib/fastlane/plugins/plugin_info.rb
fastlane-2.132.0.beta.20190923200017 fastlane/lib/fastlane/plugins/plugin_info.rb
fastlane-2.132.0.beta.20190922200014 fastlane/lib/fastlane/plugins/plugin_info.rb
fastlane-2.132.0.beta.20190921200021 fastlane/lib/fastlane/plugins/plugin_info.rb
fastlane-2.132.0.beta.20190920200012 fastlane/lib/fastlane/plugins/plugin_info.rb
fastlane-2.132.0.beta.20190919200100 fastlane/lib/fastlane/plugins/plugin_info.rb
fastlane-2.132.0.beta.20190918200023 fastlane/lib/fastlane/plugins/plugin_info.rb
fastlane-2.132.0.beta.20190917200011 fastlane/lib/fastlane/plugins/plugin_info.rb
fastlane-2.132.0.beta.20190916200055 fastlane/lib/fastlane/plugins/plugin_info.rb
fastlane-2.132.0.beta.20190915200038 fastlane/lib/fastlane/plugins/plugin_info.rb
fastlane-2.132.0.beta.20190914200034 fastlane/lib/fastlane/plugins/plugin_info.rb
fastlane-2.132.0.beta.20190913200058 fastlane/lib/fastlane/plugins/plugin_info.rb
fastlane-2.132.0.beta.20190912200052 fastlane/lib/fastlane/plugins/plugin_info.rb
fastlane-2.131.0 fastlane/lib/fastlane/plugins/plugin_info.rb
fastlane-2.131.0.beta.20190911200010 fastlane/lib/fastlane/plugins/plugin_info.rb
fastlane-2.131.0.beta.20190910200104 fastlane/lib/fastlane/plugins/plugin_info.rb
fastlane-2.131.0.beta.20190909200058 fastlane/lib/fastlane/plugins/plugin_info.rb