socotra-build 0.3.15 → 0.3.17

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 +26 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 26333901649d6a95639814d762c97bc7d050ef62
4
- data.tar.gz: 8565589834ca7e41f1fe7da42987bcfb50884b19
3
+ metadata.gz: 01dc8c4d2e0580f6ed6509bb3974877c690e5fd2
4
+ data.tar.gz: d3c74555e09af98e1f38e3b70db95da0c305c895
5
5
  SHA512:
6
- metadata.gz: 9a48b99d11740d112a6fc87f70af62472dbdf524a29d0574312d1b5433425c7d0667b4967cae76cc957c5d0c562f1b766689e9d1406e47eeae61835839035421
7
- data.tar.gz: 8dc54dbcf7d5144436d92310db64bb7e237723b4f29af79070f6162907fad11c722abb1fdbcc83bf865a62100d89d9baa0627afc1f9f412cc23e807be0fa706d
6
+ metadata.gz: 3929a519df9c35db1237739c354dfc5695657358e5fa9fc15ddf110874b475523c8eb47b45c7f7dbdbc609425f902da02280a929caced7aaed6c053bfdeb718e
7
+ data.tar.gz: a294ee1d13ff9702625cd88205c0855b22803125f2154a58d934194daa9189a71fc2dd8c9bfaaac4b5584898ffbec5d172e82ef0b1648d011209865cf382af42
data/lib/socotra-build.rb CHANGED
@@ -121,3 +121,29 @@ def self.revoke_lease(lease_id, log_identifier)
121
121
  cmd = "vault revoke #{lease_id}"
122
122
  safe_retry(cmd, log_identifier, "Revoking lease failed", false, "ERROR", false)
123
123
  end
124
+
125
+ def self.install_socotra_py_modules(environment)
126
+ cmd = "/usr/bin/yes|sudo pip uninstall socotra"
127
+ system_safe(cmd, "uninstall_socotra_py_module", "Failed to uninstall socotra", false)
128
+
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
+ system_safe(cmd, "install_socotra_py_module", "Failed to install socotra")
131
+
132
+ cmd = "/usr/bin/yes|sudo pip uninstall provisioner"
133
+ system_safe(cmd, "uninstall_provisioner_py_module", "Failed to uninstall provisioner", false)
134
+
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
+ system_safe(cmd, "install_provisioner_py_module", "Failed to install provisioner")
137
+
138
+ cmd = "/usr/bin/yes|sudo pip uninstall e2e"
139
+ system_safe(cmd, "uninstall_e2e_py_module", "Failed to uninstall e2e", false)
140
+
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
+ system_safe(cmd, "install_e2e_py_module", "Failed to install e2e")
143
+
144
+ cmd = "/usr/bin/yes|sudo pip uninstall smonitor"
145
+ system_safe(cmd, "uninstall_smonitor_py_module", "Failed to uninstall smonitor", false)
146
+
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"
148
+ system_safe(cmd, "install_smonitor_py_module", "Failed to install smonitor")
149
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: socotra-build
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.15
4
+ version: 0.3.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Antenesse