Sha256: 892e519a733851908ede569700cd01e6a00b0ca060e396642ec5a0090172477f
Contents?: true
Size: 1.44 KB
Versions: 37
Compression:
Stored size: 1.44 KB
Contents
module Fastlane module Actions # Pushes commits to the remote hg repo class HgPushAction < Action def self.run(params) command = ['hg', 'push'] command << '--force' if params[:force] command << params[:destination] unless params[:destination].empty? return command.join(' ') if Helper.is_test? Actions.sh(command.join(' ')) UI.success('Successfully pushed changes to remote 🚀.') end def self.description "This will push changes to the remote hg repository" end def self.available_options [ FastlaneCore::ConfigItem.new(key: :force, env_name: "FL_HG_PUSH_FORCE", description: "Force push to remote. Defaults to false", is_string: false, default_value: false), FastlaneCore::ConfigItem.new(key: :destination, env_name: "FL_HG_PUSH_DESTINATION", description: "The destination to push to", default_value: '', optional: true) ] end def self.author # credits to lmirosevic for original git version "sjrmanning" end def self.is_supported?(platform) true end end end end
Version data entries
37 entries across 37 versions & 1 rubygems