Sha256: ee2764c2ec5974ee46e09765de63ad809026e20a5ce13d1c86f35ff4e55f0872

Contents?: true

Size: 1.1 KB

Versions: 1

Compression:

Stored size: 1.1 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 Naming/AccessorMethodName
    def get_binding
      binding
    end
    # rubocop:enable Naming/AccessorMethodName

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fastlane_hotfix-2.187.0 fastlane/lib/fastlane/plugins/plugin_info.rb