class Fastlane::Actions::SvnCommitAction

Public Class Methods

authors() click to toggle source
# File lib/fastlane/plugin/svn_commit/actions/svn_commit_action.rb, line 19
def self.authors
  ["cleexiang"]
end
available_options() click to toggle source
# File lib/fastlane/plugin/svn_commit/actions/svn_commit_action.rb, line 31
def self.available_options
  [
    FastlaneCore::ConfigItem.new(key: :path,
                                 description: "The file you want to commit",
                                 is_string: false),
    FastlaneCore::ConfigItem.new(key: :message,
                                 description: "The commit message that should be used")
  ]
end
description() click to toggle source
# File lib/fastlane/plugin/svn_commit/actions/svn_commit_action.rb, line 15
def self.description
  "Commit to svn repos with fastlane"
end
details() click to toggle source
# File lib/fastlane/plugin/svn_commit/actions/svn_commit_action.rb, line 27
def self.details
  # Optional:
  "commit to svn repos with fastlane"
end
is_supported?(platform) click to toggle source
# File lib/fastlane/plugin/svn_commit/actions/svn_commit_action.rb, line 41
def self.is_supported?(platform)
  # Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example)
  # See: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md
  #
  # [:ios, :mac, :android].include?(platform)
  true
end
return_value() click to toggle source
# File lib/fastlane/plugin/svn_commit/actions/svn_commit_action.rb, line 23
def self.return_value
  # If your method provides a return value, you can describe here what it does
end
run(params) click to toggle source
# File lib/fastlane/plugin/svn_commit/actions/svn_commit_action.rb, line 4
def self.run(params)
  if params[:path].kind_of?(String)
    paths = params[:path].shellescape
  else
    paths = params[:path].map(&:shellescape).join(' ')
  end
  result = Actions.sh("svn commit -m #{params[:message].shellescape} #{paths}")
  UI.success("Successfully committed.")
  return result
end