Class: Bytedance::FastlaneHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/command/file_help.rb,
lib/command/fastlanehelper.rb

Instance Method Summary collapse

Constructor Details

#initializeFastlaneHelper

Returns a new instance of FastlaneHelper.



4
5
6
7
# File 'lib/command/file_help.rb', line 4

def initialize()
	load_require
	@runner =  Fastlane::Runner.new
end

Instance Method Details

#execute_fastlane_action(action_name) ⇒ Object



18
19
20
# File 'lib/command/file_help.rb', line 18

def execute_fastlane_action(action_name)
	@runner.execute_action(action_name,@runner.class_reference_from_action_name(action_name),[],custom_dir:".")
end

#load_requireObject



9
10
11
12
13
14
15
16
# File 'lib/command/file_help.rb', line 9

def load_require
  Dir[File.expand_path('*.rb', File.dirname(FileHelper.fastlane_action_path))].each do |file|
    require file
  end
  Dir[File.expand_path('*.rb', File.dirname(FileHelper.fastlane_helper_path))].each do |file|
      require file
  end
end