Class: Fastlane::Actions::CodepushListDeploymentAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::CodepushListDeploymentAction
- Defined in:
- lib/fastlane/plugin/codepush/actions/codepush_list_deployment_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
24 25 26 |
# File 'lib/fastlane/plugin/codepush/actions/codepush_list_deployment_action.rb', line 24 def self. ['Pranit Harekar'] end |
.available_options ⇒ Object
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/fastlane/plugin/codepush/actions/codepush_list_deployment_action.rb', line 34 def self. [ FastlaneCore::ConfigItem.new( key: :app_name, env_name: "APP_CENTER_APP_NAME", description: "Name of the App Center app, optional if ENV['APP_CENTER_APP_NAME'] is set", optional: false, type: String ), FastlaneCore::ConfigItem.new( key: :execution_dir_path, description: 'Release React CLI command execution dir path', optional: true, type: String, default_value: "./" ), FastlaneCore::ConfigItem.new( key: :dry_run, description: "Print the command that would be run, and don't run it", is_string: false, default_value: false ) ] end |
.description ⇒ Object
20 21 22 |
# File 'lib/fastlane/plugin/codepush/actions/codepush_list_deployment_action.rb', line 20 def self.description 'CodePush list deployment action' end |
.details ⇒ Object
31 32 |
# File 'lib/fastlane/plugin/codepush/actions/codepush_list_deployment_action.rb', line 31 def self.details end |
.is_supported?(platform) ⇒ Boolean
59 60 61 |
# File 'lib/fastlane/plugin/codepush/actions/codepush_list_deployment_action.rb', line 59 def self.is_supported?(platform) true end |
.return_value ⇒ Object
28 29 |
# File 'lib/fastlane/plugin/codepush/actions/codepush_list_deployment_action.rb', line 28 def self.return_value end |
.run(params) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fastlane/plugin/codepush/actions/codepush_list_deployment_action.rb', line 6 def self.run(params) Dir.chdir(params[:execution_dir_path].to_s) do command = "appcenter codepush deployment list " ## params command += "-a #{params[:app_name]}" if params[:dry_run] UI.('Dry run!'.red + ' Would have run: ' + command + "\n") else sh(command.to_s) end end end |