nixenvironment 0.0.115 → 0.0.116
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/legacy/Deploy.sh +5 -5
- data/lib/nixenvironment/deployer.rb +5 -4
- 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: 771693cb4e195687daf104dd4a1f7ef6bb72a47f
|
4
|
+
data.tar.gz: 8624c207144ad6f482a7e72130b401ba5faa3683
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be8e595ee7174cd8216f1f175fd77e490c76bdf2600f23691fb99f4c148419f84ddde72ad78eea490fce6cc3ec3a9ced2152b3d9690ddfe43da60821416fb857
|
7
|
+
data.tar.gz: ce78984dda66fa84d2bed8c923971933d8f36ce617a7128b694e28a15871557864af0c45b789c9b4b8f8344d7d8c01a5f3e253e9992a43494bdb83dd37e476a4
|
data/legacy/Deploy.sh
CHANGED
@@ -5,8 +5,8 @@
|
|
5
5
|
|
6
6
|
# Script uploads IPA product. Creates appropriate subdirectories.
|
7
7
|
|
8
|
-
if [[ $# <
|
9
|
-
echo "usage: $0 DEPLOY_HOST DEPLOY_DIR DEPLOY_USER DEPLOY_PASSWORD LOCAL_PATH_TO_BUILD"
|
8
|
+
if [[ $# < 6 ]]; then
|
9
|
+
echo "usage: $0 DEPLOY_HOST DEPLOY_DIR DEPLOY_USER DEPLOY_PASSWORD LOCAL_PATH_TO_BUILD RELATIVE_PATH"
|
10
10
|
exit 1
|
11
11
|
fi
|
12
12
|
|
@@ -15,11 +15,11 @@ DEPLOY_DIR=$2
|
|
15
15
|
DEPLOY_USER=$3
|
16
16
|
DEPLOY_PASS=$4
|
17
17
|
LOCAL_PATH_TO_BUILD=$5
|
18
|
-
|
19
|
-
chmod -R 775 "${LOCAL_PATH_TO_BUILD}"
|
18
|
+
RELATIVE_PATH=$6
|
20
19
|
|
21
20
|
echo "Uploading build"
|
22
21
|
|
23
|
-
scp -
|
22
|
+
scp -r "${LOCAL_PATH_TO_BUILD}" "${DEPLOY_USER}@${DEPLOY_HOST}:${DEPLOY_DIR}"
|
23
|
+
ssh ${DEPLOY_USER}@${DEPLOY_HOST} "chmod 775 -R ${DEPLOY_DIR}/${RELATIVE_PATH}"
|
24
24
|
|
25
25
|
rm -rf "${LOCAL_PATH_TO_BUILD}"
|
@@ -105,8 +105,9 @@ module Nixenvironment
|
|
105
105
|
ipa_bundle_id, ipa_product, current_app_version, current_build_version, name_for_deployment, executable_name, app_dsym, sdk)
|
106
106
|
is_iphone_build = sdk.include?('iphone')
|
107
107
|
|
108
|
+
relative_path = "v.#{current_app_version}_#{current_build_version}"
|
108
109
|
local_path_to_app = File.join(Dir.tmpdir, ipa_bundle_id)
|
109
|
-
local_path_to_build = File.join(local_path_to_app,
|
110
|
+
local_path_to_build = File.join(local_path_to_app, relative_path)
|
110
111
|
configuration_full_path = File.join(local_path_to_build, name_for_deployment)
|
111
112
|
destination_ipa_product = File.join(configuration_full_path, executable_name + (is_iphone_build ? IPA_EXT : ZIP_EXT))
|
112
113
|
|
@@ -141,16 +142,16 @@ module Nixenvironment
|
|
141
142
|
|
142
143
|
FileUtils.chmod_R(0775, local_path_to_app)
|
143
144
|
|
144
|
-
scp(deploy_host, deploy_dir, deploy_user, deploy_password, local_path_to_app)
|
145
|
+
scp(deploy_host, deploy_dir, deploy_user, deploy_password, local_path_to_app, relative_path)
|
145
146
|
|
146
147
|
FileUtils.rm_rf(local_path_to_app)
|
147
148
|
end
|
148
149
|
|
149
|
-
def self.scp(deploy_host, deploy_dir, deploy_user, deploy_password, local_path_to_app)
|
150
|
+
def self.scp(deploy_host, deploy_dir, deploy_user, deploy_password, local_path_to_app, relative_path)
|
150
151
|
puts
|
151
152
|
puts "Uploading build from '#{local_path_to_app}' ...".blue
|
152
153
|
|
153
|
-
raise 'Deploy error!' unless system("#{DEPLOY_SCRIPT_PATH} '#{deploy_host}' '#{deploy_dir}' '#{deploy_user}' '#{deploy_password}' '#{local_path_to_app}'")
|
154
|
+
raise 'Deploy error!' unless system("#{DEPLOY_SCRIPT_PATH} '#{deploy_host}' '#{deploy_dir}' '#{deploy_user}' '#{deploy_password}' '#{local_path_to_app}' '#{relative_path}'")
|
154
155
|
|
155
156
|
# TODO: Will use code below after fix https://github.com/net-ssh/net-scp/issues/24
|
156
157
|
#
|