socotra-build 0.3.18 → 0.3.19

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 +4 -4
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f8dce8e7d4ff921ca1e5b566192be3031997fe22
4
- data.tar.gz: df370fd263326ce95adbbf2d900289c4951443f3
3
+ metadata.gz: 36097082d666da8a7a16763846fe81d5c5cc264f
4
+ data.tar.gz: 269beb89a7600a8e967246ded7dc9396b5c7a472
5
5
  SHA512:
6
- metadata.gz: 35cb44c751494bad30cf22952c7413e9438a3f7c427b3a7bc2c064d5479f658f5987e83c6108a7fa535fd48e0e5d3c45cd6af7a773d1f350933eb506db7ffb52
7
- data.tar.gz: 6847f03cff3ee3a813c74776261fd94fd31626d5d88f41bb3332d0c9a7876ab04e3f42382a9f8e487ac4dbf3f3058503a57868a7e574acae839c094a4e8b7a07
6
+ metadata.gz: 1aed9b208d6f2cc0daeaeec251b1c118ec329c04ea9f4571d8c44835c90ecb4e7bd957237b720b83324f2612191720c40c64823f35b3e67b7825b575ab2525f6
7
+ data.tar.gz: 409c314d2fde2ff41498c738f524f269dc16b38e7a6b1a6bedfd38642f4b08e37fcefd978551270bb54889841055a3a00d53d3c6ee06287886f5aece4868a320
data/lib/socotra-build.rb CHANGED
@@ -123,25 +123,25 @@ def self.revoke_lease(lease_id, log_identifier)
123
123
  end
124
124
 
125
125
  def self.install_socotra_py_modules(environment)
126
- cmd = "/usr/bin/yes|sudo pip uninstall socotra"
126
+ cmd = "sudo pip list |grep socotra; if [ $? -eq 0 ];then /usr/bin/yes|sudo pip uninstall socotra;fi"
127
127
  system_safe(cmd, "uninstall_socotra_py_module", "Failed to uninstall socotra")
128
128
 
129
129
  cmd = "/usr/bin/yes|sudo pip install --user --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
130
  system_safe(cmd, "install_socotra_py_module", "Failed to install socotra")
131
131
 
132
- cmd = "/usr/bin/yes|sudo pip uninstall provisioner"
132
+ cmd = "sudo pip list |grep provisioner; if [ $? -eq 0 ];then /usr/bin/yes|sudo pip uninstall provisioner;fi"
133
133
  system_safe(cmd, "uninstall_provisioner_py_module", "Failed to uninstall provisioner")
134
134
 
135
135
  cmd = "/usr/bin/yes|sudo pip install --user --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
136
  system_safe(cmd, "install_provisioner_py_module", "Failed to install provisioner")
137
137
 
138
- cmd = "/usr/bin/yes|sudo pip uninstall e2e"
138
+ cmd = "sudo pip list |grep e2e; if [ $? -eq 0 ];then /usr/bin/yes|sudo pip uninstall e2e;fi"
139
139
  system_safe(cmd, "uninstall_e2e_py_module", "Failed to uninstall e2e")
140
140
 
141
141
  cmd = "/usr/bin/yes|sudo pip install --user --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
142
  system_safe(cmd, "install_e2e_py_module", "Failed to install e2e")
143
143
 
144
- cmd = "/usr/bin/yes|sudo pip uninstall smonitor"
144
+ cmd = "sudo pip list |grep smonitor; if [ $? -eq 0 ];then /usr/bin/yes|sudo pip uninstall smonitor;fi"
145
145
  system_safe(cmd, "uninstall_smonitor_py_module", "Failed to uninstall smonitor")
146
146
 
147
147
  cmd = "/usr/bin/yes|sudo pip install --user --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"
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.18
4
+ version: 0.3.19
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-05 00:00:00.000000000 Z
11
+ date: 2015-09-06 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Common functions for build
14
14
  email: chris.antenesse@socotra.com