Sha256: b78ab17b40df66ea46317f1c4705b23c9ca47981900084968f9c6142e153f4c0

Contents?: true

Size: 1013 Bytes

Versions: 16

Compression:

Stored size: 1013 Bytes

Contents

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

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

16 entries across 16 versions & 1 rubygems

Version Path
fastlane-1.105.2 lib/fastlane/plugins/plugin_info.rb
fastlane-1.105.1 lib/fastlane/plugins/plugin_info.rb
fastlane-1.105.0 lib/fastlane/plugins/plugin_info.rb
fastlane-1.104.0 lib/fastlane/plugins/plugin_info.rb
fastlane-1.103.0 lib/fastlane/plugins/plugin_info.rb
fastlane-1.102.0 lib/fastlane/plugins/plugin_info.rb
fastlane-1.101.0 lib/fastlane/plugins/plugin_info.rb
fastlane-1.100.0 lib/fastlane/plugins/plugin_info.rb
fastlane-1.99.0 lib/fastlane/plugins/plugin_info.rb
fastlane-1.98.0 lib/fastlane/plugins/plugin_info.rb
fastlane-1.97.2 lib/fastlane/plugins/plugin_info.rb
fastlane-1.97.1 lib/fastlane/plugins/plugin_info.rb
fastlane-1.97.0 lib/fastlane/plugins/plugin_info.rb
fastlane-1.96.0 lib/fastlane/plugins/plugin_info.rb
fastlane-1.95.0 lib/fastlane/plugins/plugin_info.rb
fastlane-1.94.1 lib/fastlane/plugins/plugin_info.rb