Class: Fastlane::Actions::FivBumpVersionAction

Inherits:
Action
  • Object
show all
Defined in:
lib/fastlane/plugin/fivethree_ionic/actions/fiv_bump_version.rb

Documentation collapse

Class Method Summary collapse

Class Method Details

.authorsObject



52
53
54
55
# File 'lib/fastlane/plugin/fivethree_ionic/actions/fiv_bump_version.rb', line 52

def self.authors
  # So no one will ever forget your contribution to fastlane :) You are awesome btw!
  ["Your GitHub/Twitter Name"]
end

.available_optionsObject



27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/fastlane/plugin/fivethree_ionic/actions/fiv_bump_version.rb', line 27

def self.available_options
  # Define all options your action supports. 
  
  # Below a few examples
  [
    FastlaneCore::ConfigItem.new(key: :message,
                                 env_name: "FIV_BUILD_IONIC_ANDROID_IS_PROD",
                                 description: "Dev or Prod build",
                                 optional: false,
                                 type: String)
  ]
end

.descriptionObject



17
18
19
# File 'lib/fastlane/plugin/fivethree_ionic/actions/fiv_bump_version.rb', line 17

def self.description
  "A short description with <= 80 characters of what this action does"
end

.detailsObject



21
22
23
24
25
# File 'lib/fastlane/plugin/fivethree_ionic/actions/fiv_bump_version.rb', line 21

def self.details
  # Optional:
  # this is your chance to provide a more detailed description of this action
  "You can use this action to do cool things..."
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


57
58
59
# File 'lib/fastlane/plugin/fivethree_ionic/actions/fiv_bump_version.rb', line 57

def self.is_supported?(platform)
 platform == :android
end

.outputObject



40
41
42
43
44
45
46
# File 'lib/fastlane/plugin/fivethree_ionic/actions/fiv_bump_version.rb', line 40

def self.output
  # Define the shared values you are going to provide
  # Example
  [
    ['FIV_BUILD_IONIC_ANDROID_CUSTOM_VALUE', 'A description of what this value contains']
  ]
end

.return_valueObject



48
49
50
# File 'lib/fastlane/plugin/fivethree_ionic/actions/fiv_bump_version.rb', line 48

def self.return_value
  # If your method provides a return value, you can describe here what it does
end

.run(params) ⇒ Object



8
9
10
11
# File 'lib/fastlane/plugin/fivethree_ionic/actions/fiv_bump_version.rb', line 8

def self.run(params)
  sh "git add config.xml"
  sh "git commit -m \"#{params[:message]}\""
end