fastlane/lib/fastlane/fast_file.rb
# Stores all relevant information from the currently running process
Stores all relevant information from the currently running process
Stores all relevant information from the currently running process
def import(path = nil)
      UI.user_error!("Please pass a path to the `import` action") unless path
      path = path.dup.gsub("~", Dir.home)
      unless Pathname.new(path).absolute? 
        path = File.join(File.expand_path('..', @path), path)
      end
      UI.user_error!("Could not find Fastfile at path '#{path}'") unless File.exist?(path)
      actions_path = File.join(File.expand_path("..", path), 'actions')
      Fastlane::Actions.load_external_actions(actions_path) if File.directory?(actions_path)
      action_launched('import')
      return_value = parse(File.read(path), path)
      action_completed('import', status: FastlaneCore::ActionCompletionStatus::SUCCESS)
      return return_value
    end
def import ( path = nil ) UI . user_error! ( "Please pass a path to the `import` action" ) unless path path = path . dup . gsub ( "~" , Dir . home ) unless Pathname . new ( path ) . absolute? path = File . join ( File . expand_path ( '..' , @path ) , path ) end UI . user_error! ( "Could not find Fastfile at path '#{path}'" ) unless File . exist? ( path ) actions_path = File . join ( File . expand_path ( ".." , path ) , 'actions' ) Fastlane :: Actions . load_external_actions ( actions_path ) if File . directory? ( actions_path ) action_launched ( 'import' ) return_value = parse ( File . read ( path ) , path ) action_completed ( 'import' , status : FastlaneCore :: ActionCompletionStatus :: SUCCESS ) return return_value end
Stores all relevant information from the currently running process
Stores all relevant information from the currently running process
# unless an absolute path # First check if there are local actions to import in the same directory as the Fastfile
path
<not_specific>