Class: Fastlane::Actions::WaldoAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::WaldoAction
- Defined in:
- lib/fastlane/plugin/waldo/actions/waldo_action.rb
Class Method Summary collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .category ⇒ Object
- .description ⇒ Object
- .example_code ⇒ Object
- .is_supported?(platform) ⇒ Boolean
- .output ⇒ Object
- .run(params) ⇒ Object
Class Method Details
.authors ⇒ Object
17 18 19 |
# File 'lib/fastlane/plugin/waldo/actions/waldo_action.rb', line 17 def self. ['eBardX'] end |
.available_options ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/fastlane/plugin/waldo/actions/waldo_action.rb', line 21 def self. [ # iOS-specific FastlaneCore::ConfigItem.new(key: :app_path, env_name: 'WALDO_APP_PATH', description: 'Path to your app file', optional: true), # Android-specific FastlaneCore::ConfigItem.new(key: :apk_path, env_name: 'WALDO_APK_PATH', description: 'Path to your APK file (optional if you use the _gradle_ action)', default_value: Actions.lane_context[Actions::SharedValues::GRADLE_APK_OUTPUT_PATH], default_value_dynamic: true, optional: true), # General FastlaneCore::ConfigItem.new(key: :upload_token, env_name: 'WALDO_UPLOAD_TOKEN', description: 'Upload token', optional: true, sensitive: true), FastlaneCore::ConfigItem.new(key: :variant_name, env_name: 'WALDO_VARIANT_NAME', description: 'Variant name', optional: true), FastlaneCore::ConfigItem.new(key: :git_branch, env_name: 'WALDO_GIT_BRANCH', description: 'Branch name for originating git commit', optional: true), FastlaneCore::ConfigItem.new(key: :git_commit, env_name: 'WALDO_GIT_COMMIT', description: 'Hash of originating git commit', optional: true) ] end |
.category ⇒ Object
56 57 58 |
# File 'lib/fastlane/plugin/waldo/actions/waldo_action.rb', line 56 def self.category :testing end |
.description ⇒ Object
60 61 62 |
# File 'lib/fastlane/plugin/waldo/actions/waldo_action.rb', line 60 def self.description 'Upload a new build to [Waldo](https://www.waldo.io)' end |
.example_code ⇒ Object
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/fastlane/plugin/waldo/actions/waldo_action.rb', line 64 def self.example_code [ 'waldo', "waldo( upload_token: '...' )", "waldo( apk_path: './YourApp.apk', upload_token: '...' )", "waldo( app_path: './YourApp.app', upload_token: '...' )" ] end |
.is_supported?(platform) ⇒ Boolean
81 82 83 |
# File 'lib/fastlane/plugin/waldo/actions/waldo_action.rb', line 81 def self.is_supported?(platform) [:android, :ios].include?(platform) end |
.output ⇒ Object
85 86 87 88 89 |
# File 'lib/fastlane/plugin/waldo/actions/waldo_action.rb', line 85 def self.output [ ['WALDO_BUILD_ID', 'ID of the uploaded build'] ] end |
.run(params) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/fastlane/plugin/waldo/actions/waldo_action.rb', line 8 def self.run(params) mparams = Helper::WaldoHelper.filter_parameters(params) FastlaneCore::PrintTable.print_values(config: mparams, title: "Summary for waldo #{Fastlane::Waldo::VERSION.to_s}") Helper::WaldoHelper.upload_build(mparams) end |