Sha256: b96d7cd7ad3bdca4530360e6a1fb406150429a395e6e5ecd971dd558724926d3

Contents?: true

Size: 1 KB

Versions: 1087

Compression:

Stored size: 1 KB

Contents

module Fastlane
  # This class is used to call other actions from within actions
  # We use a separate class so that we can easily identify when
  # we have dependencies between actions
  class OtherAction
    attr_accessor :runner

    def initialize(runner)
      self.runner = runner
    end

    # Allows the user to call an action from an action
    def method_missing(method_sym, *arguments, &_block)
      # We have to go inside the fastlane directory
      # since in the fastlane runner.rb we do the following
      #   custom_dir = ".."
      #   Dir.chdir(custom_dir) do
      # this goes one folder up, since we're inside the "fastlane"
      # folder at that point
      # Since we call an action from an action we need to go inside
      # the fastlane folder too

      self.runner.trigger_action_by_name(method_sym,
                                         FastlaneCore::FastlaneFolder.path,
                                         true,
                                         *arguments)
    end
  end
end

Version data entries

1,087 entries across 1,087 versions & 5 rubygems

Version Path
fastlane-2.150.0.rc6 fastlane/lib/fastlane/other_action.rb
fastlane-2.150.0.rc5 fastlane/lib/fastlane/other_action.rb
fastlane-2.150.0.rc4 fastlane/lib/fastlane/other_action.rb
fastlane-2.150.0.rc3 fastlane/lib/fastlane/other_action.rb
fastlane-2.150.0.rc2 fastlane/lib/fastlane/other_action.rb
fastlane-2.150.0.rc1 fastlane/lib/fastlane/other_action.rb
fastlane-2.149.1 fastlane/lib/fastlane/other_action.rb
fastlane-2.149.0 fastlane/lib/fastlane/other_action.rb
fastlane-2.148.1 fastlane/lib/fastlane/other_action.rb
fastlane-2.148.0 fastlane/lib/fastlane/other_action.rb
fastlane-2.147.0 fastlane/lib/fastlane/other_action.rb
fastlane-2.146.1 fastlane/lib/fastlane/other_action.rb
fastlane-2.146.0 fastlane/lib/fastlane/other_action.rb
fastlane-2.145.0 fastlane/lib/fastlane/other_action.rb
fastlane-2.144.0 fastlane/lib/fastlane/other_action.rb
fastlane-2.143.0 fastlane/lib/fastlane/other_action.rb
fastlane-2.142.0 fastlane/lib/fastlane/other_action.rb
fastlane-2.141.0 fastlane/lib/fastlane/other_action.rb
fastlane-2.140.0 fastlane/lib/fastlane/other_action.rb
fastlane-2.139.0 fastlane/lib/fastlane/other_action.rb