fastlane-plugin-code_push 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0ffaa9ef0dffbf83b5a787c91a9d06d6788bf0f0
4
- data.tar.gz: 1fab898026af5e1e4623a51d71f579c9592ab5e0
3
+ metadata.gz: 8f3c113e3c7771d703608ed06569a885baced16a
4
+ data.tar.gz: a56286d58b92ae4672d64ac2552112837a8777c5
5
5
  SHA512:
6
- metadata.gz: df24a4d32e2f8cedadfd5ee184ff63cac8cc8afa05f0f06c38a3c49ac1688536553aa76d7afd88117e0c82b4c06651c8f7e33ffd3c0821dc4261b33dc1065083
7
- data.tar.gz: 602213bbf722a6341c683de38514a1d7bb05880d0e311df385072c72ecf0956c8acc381cea2415ff148ad433f614239b3f0e3d957ca82a1e344e69f39d8eb599
6
+ metadata.gz: 0e489204e6a3273c23181f39d082124eada1554cc82dc90eeafe9a18f7cc8189ad27c5ec92b2506abf779a4ee1b2af1c7c7500cfe1f23c83c333011911354d5f
7
+ data.tar.gz: 4b226d9050150da18b2d585e23baabaa5b86a9db8088a38426be90313ce1df0b724cfbba4ca79f38cfcdae5b24a0982c9f510e7e9c66d1c5ffbca959ff65b894
data/README.md CHANGED
@@ -64,12 +64,14 @@ code_push_release_react(
64
64
  Key | Description | Env Var | Default
65
65
  ------------- | ------------- | ------------- | -------------
66
66
  app_name | CodePush app name for releasing | FASTLANE_CODE_PUSH_APP_NAME |
67
+ execution_dir_path | Release React CLI command execution dir path. Set to project root when you execute fastlane in a diffrent dir than package.json stays | | ./
67
68
  platform | Platform for releasing to | | android
68
69
  deployment | Deployment name for releasing to | | Staging
69
70
  target_binary_version | Target binary version for example 1.0.1 | |
70
71
  mandatory | manadtory update or not | | true
71
72
  description | Release description for CodePush | | no description for release
72
- dry_run | Print the command that would be run, and don't run it | | false
73
+ disabled | Specifies whether this release should be immediately downloadable [boolean] [Standard: false] | | false
74
+ dry_run | Print the command that would be run, but don't run it | | false
73
75
  ## Example
74
76
 
75
77
  Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. Try it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test`.
@@ -2,18 +2,23 @@ module Fastlane
2
2
  module Actions
3
3
  class CodePushReleaseReactAction < Action
4
4
  def self.run(params)
5
- command = "code-push release-react #{params[:app_name]} #{params[:platform]} -d #{params[:deployment]} "\
6
- "--des \"#{params[:description]}\" "
7
- if params[:mandatory]
8
- command += "-m "
9
- end
10
- if params[:target_binary_version]
11
- command += "-t #{params[:target_binary_version]} "
12
- end
13
- if params[:dry_run]
14
- UI.message("Dry run!".red + " Would have run: " + command + "\n")
15
- else
16
- sh(command.to_s)
5
+ Dir.chdir "#{params[:execution_dir_path]}" do
6
+ command = "code-push release-react #{params[:app_name]} #{params[:platform]} -d #{params[:deployment]} "\
7
+ "--des \"#{params[:description]}\" "
8
+ if params[:mandatory]
9
+ command += "-m "
10
+ end
11
+ if params[:target_binary_version]
12
+ command += "-t #{params[:target_binary_version]} "
13
+ end
14
+ if params[:disabled]
15
+ command += "-x "
16
+ end
17
+ if params[:dry_run]
18
+ UI.message("Dry run!".red + " Would have run: " + command + "\n")
19
+ else
20
+ sh(command.to_s)
21
+ end
17
22
  end
18
23
  end
19
24
 
@@ -41,6 +46,11 @@ module Fastlane
41
46
  type: String,
42
47
  optional: false,
43
48
  description: "CodePush app name for releasing"),
49
+ FastlaneCore::ConfigItem.new(key: :execution_dir_path,
50
+ type: String,
51
+ optional: true,
52
+ default_value: "./",
53
+ description: "Release React CLI command execution dir"),
44
54
  FastlaneCore::ConfigItem.new(key: :platform,
45
55
  type: String,
46
56
  optional: true,
@@ -68,7 +78,12 @@ module Fastlane
68
78
  FastlaneCore::ConfigItem.new(key: :dry_run,
69
79
  description: "Print the command that would be run, and don't run it",
70
80
  is_string: false,
71
- default_value: false)
81
+ default_value: false),
82
+ FastlaneCore::ConfigItem.new(key: :disabled,
83
+ is_string: false,
84
+ default_value: false,
85
+ optional: true,
86
+ description: "Specifies whether this release should be immediately downloadable")
72
87
  ]
73
88
  end
74
89
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module CodePush
3
- VERSION = "0.1.1"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-code_push
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Koch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-16 00:00:00.000000000 Z
11
+ date: 2017-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry