nixenvironment 0.0.33 → 0.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/nixenvironment +12 -9
- data/lib/nixenvironment/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 173a2932b8b3e3fcae157d9d4a8c3c7069cd86df
|
4
|
+
data.tar.gz: 8cffe692cba5864298bb6b1efe51d96d104a2c1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b671c401f9064d6a0c22a34409ea4ecbbd4d3ae6c314bfd397ab35d927d470833de2e88db8c6d3c6f245c605d24d30c4a627b7154136fe27aad01a181526552
|
7
|
+
data.tar.gz: 69e313172837915b0f34b6e2d4094de05fa2b975fc26053ad2446a9997b090d3c2b6656ae460835b1545673886710077f459196fab3f7a9db902e5cdfea5dbe1
|
data/bin/nixenvironment
CHANGED
@@ -97,19 +97,22 @@ command :deploy do |c|
|
|
97
97
|
c.description = 'Deploy built artifacts to given server'
|
98
98
|
c.option '--unity TARGET PLATFORM', String, 'Select target platform for unity deploy (ios or android)'
|
99
99
|
c.action do |args, options|
|
100
|
+
need_to_deploy_ios = true
|
101
|
+
|
100
102
|
if options.unity and options.unity.length > 0
|
101
103
|
need_to_deploy_ios, root_working_dir, need_chdir_to_root_working_dir = unity_deploy(options.unity)
|
102
|
-
return unless need_to_deploy_ios
|
103
104
|
end
|
104
105
|
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
106
|
+
if need_to_deploy_ios
|
107
|
+
begin
|
108
|
+
read_config_settings
|
109
|
+
deploy
|
110
|
+
rescue
|
111
|
+
raise # re-rise exception but chdir to root_working_dir in ensure block first if needed
|
112
|
+
ensure
|
113
|
+
if need_chdir_to_root_working_dir and root_working_dir
|
114
|
+
Dir.chdir(root_working_dir)
|
115
|
+
end
|
113
116
|
end
|
114
117
|
end
|
115
118
|
end
|