Sha256: e3a718e058fd3cbbee4450adbb0823e1a9b77c7d224677678d427f882f918ece

Contents?: true

Size: 1.24 KB

Versions: 35

Compression:

Stored size: 1.24 KB

Contents

module Fastlane
  module Actions
    class GitPullAction < Action
      def self.run(params)
        commands = []

        unless params[:only_tags]
          commands += ["git pull &&"]
        end

        commands += ["git fetch --tags"]

        Actions.sh(commands.join(' '))
      end

      def self.description
        "Executes a simple git pull command"
      end

      def self.available_options
        [
          FastlaneCore::ConfigItem.new(key: :only_tags,
                                       description: "Simply pull the tags, and not bring new commits to the current branch from the remote",
                                       is_string: false,
                                       optional: true,
                                       default_value: false,
                                       verify_block: proc do |value|
                                         UI.user_error!("Please pass a valid value for only_tags. Use one of the following: true, false") unless value.kind_of?(TrueClass) || value.kind_of?(FalseClass)
                                       end)
        ]
      end

      def self.authors
        ["KrauseFx", "JaviSoto"]
      end

      def self.is_supported?(platform)
        true
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
fastlane-1.104.0 lib/fastlane/actions/git_pull.rb
fastlane-1.103.0 lib/fastlane/actions/git_pull.rb
fastlane-1.102.0 lib/fastlane/actions/git_pull.rb
fastlane-1.101.0 lib/fastlane/actions/git_pull.rb
fastlane-1.100.0 lib/fastlane/actions/git_pull.rb
fastlane-1.99.0 lib/fastlane/actions/git_pull.rb
fastlane-1.98.0 lib/fastlane/actions/git_pull.rb
fastlane-1.97.2 lib/fastlane/actions/git_pull.rb
fastlane-1.97.1 lib/fastlane/actions/git_pull.rb
fastlane-1.97.0 lib/fastlane/actions/git_pull.rb
fastlane-1.96.0 lib/fastlane/actions/git_pull.rb
fastlane-1.95.0 lib/fastlane/actions/git_pull.rb
fastlane-1.94.1 lib/fastlane/actions/git_pull.rb
fastlane-1.94.0 lib/fastlane/actions/git_pull.rb
fastlane-1.93.1 lib/fastlane/actions/git_pull.rb
fastlane-1.93.0 lib/fastlane/actions/git_pull.rb
fastlane-1.92.0 lib/fastlane/actions/git_pull.rb
fastlane-1.92.0.beta2 lib/fastlane/actions/git_pull.rb
fastlane-1.92.0.beta1 lib/fastlane/actions/git_pull.rb
fastlane-1.91.0 lib/fastlane/actions/git_pull.rb