Sha256: 16fee3b1b059a9d731c88cb91a5bfd8d9823b4b814ba06f9347c3cc4ab3fae23
Contents?: true
Size: 1.5 KB
Versions: 15
Compression:
Stored size: 1.5 KB
Contents
module Fastlane module Actions module SharedValues [[NAME_UP]]_CUSTOM_VALUE = :[[NAME_UP]]_CUSTOM_VALUE end class [[NAME_CLASS]] < Action def self.run(params) params = params.first Helper.log.info "My Ruby Code!" # Helper.log.info "Parameter Path: #{params[:first]}" # sh "shellcommand ./path" # Actions.lane_context[SharedValues::[[NAME_UP]]_CUSTOM_VALUE] = "my_val" end ##################################################### # @!group Documentation ##################################################### def self.description "A short description with <= 80 characters of what this action does" end def self.available_options # Define all options your action supports. # The environment variable (last parameters) is optional, remove it if you don't need it # You can add as many parameters as you want [ ['path', 'Describe what this parameter is useful for', 'ENVIRONMENT_VARIABLE_NAME'], ['second', 'Describe what this parameter is useful for'] ] end def self.output # Define the shared values you are going to provide # Example [ ['[[NAME_UP]]_CUSTOM_VALUE', 'A description of what this value contains'] ] end def self.author # So no one will ever forget your contribution to fastlane :) You are awesome btw! '[Your GitHub Name]' end end end end
Version data entries
15 entries across 15 versions & 1 rubygems