socotra-build 0.3.20 → 0.3.21
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/lib/socotra-build.rb +5 -23
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3ac97b1ead221f62517364d46f7e1bdb556af73b
|
|
4
|
+
data.tar.gz: 626064014c3831a94efb8ed49f33892cc7cd5181
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 353d745d34ae15d62603bb6767514408ac0ad73988a7c7330e33a3a97f7b0a615d64811025a2d65fb595695d50aed4b284cc466334691dcfe21c53c7a02dbdfa
|
|
7
|
+
data.tar.gz: 9bf9e6feb39f46c6b26a5b5e2c4a3c4c41a708dc3d1a64dbc0693035a1d80e63ff8e0a5d9be80d37a3d18409d287175bff447065994f950ac33b3561ef2da33e
|
data/lib/socotra-build.rb
CHANGED
|
@@ -122,28 +122,10 @@ def self.revoke_lease(lease_id, log_identifier)
|
|
|
122
122
|
safe_retry(cmd, log_identifier, "Revoking lease failed", false, "ERROR", false)
|
|
123
123
|
end
|
|
124
124
|
|
|
125
|
-
def self.install_socotra_py_modules(environment)
|
|
126
|
-
cmd = "sudo pip list |grep
|
|
127
|
-
system_safe(cmd, "
|
|
125
|
+
def self.install_socotra_py_modules(pymodule, environment)
|
|
126
|
+
cmd = "sudo pip list |grep #{pymodule}; if [ $? -eq 0 ];then /usr/bin/yes|sudo pip uninstall #{pymodule};fi"
|
|
127
|
+
system_safe(cmd, "uninstall_#{pymodule}_py_module", "Failed to uninstall #{pymodule}")
|
|
128
128
|
|
|
129
|
-
cmd = "/usr/bin/yes|sudo pip install --trusted-host socotra-pypi-euw1.s3-website-eu-west-1.amazonaws.com --extra-index-url=http://socotra-pypi-euw1.s3-website-eu-west-1.amazonaws.com
|
|
130
|
-
system_safe(cmd, "
|
|
131
|
-
|
|
132
|
-
cmd = "sudo pip list |grep provisioner; if [ $? -eq 0 ];then /usr/bin/yes|sudo pip uninstall provisioner;fi"
|
|
133
|
-
system_safe(cmd, "uninstall_provisioner_py_module", "Failed to uninstall provisioner")
|
|
134
|
-
|
|
135
|
-
cmd = "/usr/bin/yes|sudo pip install --trusted-host socotra-pypi-euw1.s3-website-eu-west-1.amazonaws.com --extra-index-url=http://socotra-pypi-euw1.s3-website-eu-west-1.amazonaws.com/provisioner/#{environment} provisioner"
|
|
136
|
-
system_safe(cmd, "install_provisioner_py_module", "Failed to install provisioner")
|
|
137
|
-
|
|
138
|
-
cmd = "sudo pip list |grep e2e; if [ $? -eq 0 ];then /usr/bin/yes|sudo pip uninstall e2e;fi"
|
|
139
|
-
system_safe(cmd, "uninstall_e2e_py_module", "Failed to uninstall e2e")
|
|
140
|
-
|
|
141
|
-
cmd = "/usr/bin/yes|sudo pip install --trusted-host socotra-pypi-euw1.s3-website-eu-west-1.amazonaws.com --extra-index-url=http://socotra-pypi-euw1.s3-website-eu-west-1.amazonaws.com/e2e/#{environment} e2e"
|
|
142
|
-
system_safe(cmd, "install_e2e_py_module", "Failed to install e2e")
|
|
143
|
-
|
|
144
|
-
cmd = "sudo pip list |grep smonitor; if [ $? -eq 0 ];then /usr/bin/yes|sudo pip uninstall smonitor;fi"
|
|
145
|
-
system_safe(cmd, "uninstall_smonitor_py_module", "Failed to uninstall smonitor")
|
|
146
|
-
|
|
147
|
-
cmd = "/usr/bin/yes|sudo pip install --trusted-host socotra-pypi-euw1.s3-website-eu-west-1.amazonaws.com --extra-index-url=http://socotra-pypi-euw1.s3-website-eu-west-1.amazonaws.com/smonitor/#{environment} smonitor"
|
|
148
|
-
system_safe(cmd, "install_smonitor_py_module", "Failed to install smonitor")
|
|
129
|
+
cmd = "/usr/bin/yes|sudo pip install --trusted-host socotra-pypi-euw1.s3-website-eu-west-1.amazonaws.com --extra-index-url=http://socotra-pypi-euw1.s3-website-eu-west-1.amazonaws.com/#{pymodule}/#{environment} #{pymodule}"
|
|
130
|
+
system_safe(cmd, "install_#{pymodule}_py_module", "Failed to install #{pymodule}")
|
|
149
131
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: socotra-build
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.21
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Antenesse
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-10-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Common functions for build
|
|
14
14
|
email: chris.antenesse@socotra.com
|