vps_cli 0.1.13 → 0.1.14

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cca8136953c126cb3ca7b5cbb58eab55b4c2f5d7a1abe7c3717f881ad23b671e
4
- data.tar.gz: aef72fffdac10682af233dddab96d2b3e4b3b775d4254b4304b4485330542f9f
3
+ metadata.gz: c01e5f3ac83a115d12574ff302993ed2455906c88c4c472071e4be06368db4ca
4
+ data.tar.gz: c6b93c8fef7849deef74dd3816632d37c4d3b167518d3cdb6da52e920e0fdd9e
5
5
  SHA512:
6
- metadata.gz: 83b35dcf882e8a4bcafbeb75c0d2c8d34b23e1d25498a22900ec352807382677af3af8507478d1f210d47ae2adbcae460ff6770cb8bed178fd9296c98a24fb2c
7
- data.tar.gz: ec06641062e4e7bb957d08d20a4f3d766de80ec26d32755db91587bb897bae6d0e322e7ff7c8c0b762f52f984b03b2f03b026bf4ac2345ed12781a4a0ff4213f
6
+ metadata.gz: 59bd835a1bddc9381b7f2e2bb751b7a9cfd8d0c78cccb2f26098c23e5a01cb451541674ba6386966600be180120712f487cedc0d50231fc3ad62a57b221076f0
7
+ data.tar.gz: 2619324f07eb7b020643ae0773c6702e148ce0198436a9dbf31422a4839c1caa8ca0191f0a3793ab25d42daaec4597ad1c62ada06e0c1f01791d50091b960ab9
@@ -63,9 +63,11 @@ module VpsCli
63
63
  def self.packages
64
64
  Packages::UBUNTU.each do |item|
65
65
  Rake.sh("sudo apt-get install -y #{item}")
66
-
67
- puts 'Successfully completed apt-get install on all packages.'
66
+ rescue StandardError => e
67
+ VpsCli.errors << e.msg("Unable to install #{item}")
68
68
  end
69
+
70
+ puts 'Successfully completed apt-get install on all packages.'
69
71
  end
70
72
 
71
73
  # installs various other tools and fixes an issue with npm / nodejs
@@ -99,10 +101,15 @@ module VpsCli
99
101
  # update npm, there are some issues with ubuntu 18.10 removing npm
100
102
  # and then being unable to update it
101
103
  # for some reason npm and ubuntu dont play well
102
- Rake.sh('sudo apt-get install libssl1.0-dev -y')
103
- Rake.sh('sudo apt-get install nodejs-dev -y')
104
- Rake.sh('sudo apt-get install node-gyp -y')
105
- Rake.sh('sudo apt-get install npm -y')
104
+ pkgs = %w[libssl1.0-dev nodejs-dev node-gyp npm]
105
+
106
+
107
+ pkgs.each do |pkg|
108
+ Rake.sh("sudo apt-get install #{pkg} -y")
109
+ rescue StandardError => e
110
+ VpsCli.errors << e.msg("unable to install #{pkg}")
111
+ end
112
+
106
113
  Rake.sh('sudo npm install -g npm')
107
114
  end
108
115
 
@@ -1,3 +1,3 @@
1
1
  module VpsCli
2
- VERSION = "0.1.13"
2
+ VERSION = "0.1.14"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vps_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - paramagicdev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-05-26 00:00:00.000000000 Z
11
+ date: 2019-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler