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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/socotra-build.rb +5 -23
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 29953de664d9653420f9fd9ac27ba490455dd621
4
- data.tar.gz: 99daabd2d082d93c0df43d2fa87b9b968f9864d5
3
+ metadata.gz: 3ac97b1ead221f62517364d46f7e1bdb556af73b
4
+ data.tar.gz: 626064014c3831a94efb8ed49f33892cc7cd5181
5
5
  SHA512:
6
- metadata.gz: cddc28aeaacb5bbed64e9a1a01f84b4e63ce1b8db05ea8122b9a0ea99a4e73f2527e3910433699a5777d35cef7148f8f2da2584d85321961a3cf83b34434683a
7
- data.tar.gz: e61d9d383d0e017d7facd973bddd172757c8ac7964770822aed18c3c72d5741e349a81fb6516bc89018d5f2d6e08839db5a49807e614d52872b5daa6491ddd7d
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 socotra; if [ $? -eq 0 ];then /usr/bin/yes|sudo pip uninstall socotra;fi"
127
- system_safe(cmd, "uninstall_socotra_py_module", "Failed to uninstall socotra")
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/socotra/#{environment} socotra"
130
- system_safe(cmd, "install_socotra_py_module", "Failed to install socotra")
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.20
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-09-12 00:00:00.000000000 Z
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