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 +4 -4
- data/lib/vps_cli/install.rb +13 -6
- data/lib/vps_cli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c01e5f3ac83a115d12574ff302993ed2455906c88c4c472071e4be06368db4ca
|
|
4
|
+
data.tar.gz: c6b93c8fef7849deef74dd3816632d37c4d3b167518d3cdb6da52e920e0fdd9e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 59bd835a1bddc9381b7f2e2bb751b7a9cfd8d0c78cccb2f26098c23e5a01cb451541674ba6386966600be180120712f487cedc0d50231fc3ad62a57b221076f0
|
|
7
|
+
data.tar.gz: 2619324f07eb7b020643ae0773c6702e148ce0198436a9dbf31422a4839c1caa8ca0191f0a3793ab25d42daaec4597ad1c62ada06e0c1f01791d50091b960ab9
|
data/lib/vps_cli/install.rb
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
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
|
|
data/lib/vps_cli/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2019-05-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|