Class: Fastlane::Actions::GsBeforeAllAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::GsBeforeAllAction
- Defined in:
- lib/fastlane/plugin/gs_project_flow_ios/actions/gs_before_all_action.rb
Class Method Summary collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .description ⇒ Object
- .details ⇒ Object
- .is_supported?(platform) ⇒ Boolean
- .return_value ⇒ Object
- .run(params) ⇒ Object
Class Method Details
.authors ⇒ Object
29 30 31 |
# File 'lib/fastlane/plugin/gs_project_flow_ios/actions/gs_before_all_action.rb', line 29 def self. ["Сергей Веселовский"] end |
.available_options ⇒ Object
42 43 44 45 46 47 48 49 50 |
# File 'lib/fastlane/plugin/gs_project_flow_ios/actions/gs_before_all_action.rb', line 42 def self. [ # FastlaneCore::ConfigItem.new(key: :your_option, # env_name: "GS_PROJECT_FLOW_IOS_YOUR_OPTION", # description: "A description of your option", # optional: false, # type: String) ] end |
.description ⇒ Object
25 26 27 |
# File 'lib/fastlane/plugin/gs_project_flow_ios/actions/gs_before_all_action.rb', line 25 def self.description "Plugin contains project flow code for code sharing between projects" end |
.details ⇒ Object
37 38 39 40 |
# File 'lib/fastlane/plugin/gs_project_flow_ios/actions/gs_before_all_action.rb', line 37 def self.details # Optional: "Plugin contains project flow code for code sharing between GradoService projects" end |
.is_supported?(platform) ⇒ Boolean
52 53 54 55 56 57 58 |
# File 'lib/fastlane/plugin/gs_project_flow_ios/actions/gs_before_all_action.rb', line 52 def self.is_supported?(platform) # Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example) # See: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md # # [:ios, :mac, :android].include?(platform) true end |
.return_value ⇒ Object
33 34 35 |
# File 'lib/fastlane/plugin/gs_project_flow_ios/actions/gs_before_all_action.rb', line 33 def self.return_value # If your method provides a return value, you can describe here what it does end |
.run(params) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/fastlane/plugin/gs_project_flow_ios/actions/gs_before_all_action.rb', line 4 def self.run(params) require 'cocoapods' # if custom meta directory specified in .env file rename it to 'metadata'. It will delete default 'metadata' dir unless ENV["ITC_META_DIR"].nil? system ("rm -rf metadata") system ("mv " + ENV["ITC_META_DIR"] + " metadata") UI.important("Use custom ITC metadata.") end unless ENV["ITC_SCREENSHOTS_DIR"].nil? system ("rm -rf screenshots") system ("mv " + ENV["ITC_SCREENSHOTS_DIR"]+ " screenshots") UI.important("Use custom ITC screenshots.") end action = 'cocoapods' parameters = {:use_bundle_exec => false} Fastlane::Helper::GsProjectFlowIosHelper.new.execute_action(action,parameters) end |