vps_cli 0.1.16 → 0.1.17

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 23e0762ba97bfb5800862b2be965b2c798eafbdaa827e1ee3ed8c28932f32543
4
- data.tar.gz: f9efc76a00e392f6553e8f9b3ae6d5512671cc5e2dff4527673a8e9904fc96d7
3
+ metadata.gz: f1eddcc71f3e9307aa2bf772cd8ccab916359e2d27e2d18e0be6b7cc9a73fd1d
4
+ data.tar.gz: b99f4e6fab69453e3ca27d5bc5eb284c4287423b30e45f11f20368daa7080d26
5
5
  SHA512:
6
- metadata.gz: 4ad6d81f8788b1386c1e76a1bc157fd13f2ed19a4910eae78dc26c0e41d25ba643d202b06907df0a2cc2bb90e19ca4d741371488dc402312dbbb56ba6baa2c3f
7
- data.tar.gz: 107a8d33d16f57e01f9aa358f219f18a938ca69c6daffdfa5dc610639a11f4c8b433d8390d2a6f1883ed14834c1ee894100c247d4e01ccde060e93c338c9f8fe
6
+ metadata.gz: 2eaa5a7699f00ce22b39025f17f75f15c9a33bf7e956abb1f4a6ba1c58db97b3a761382749a63240d2daf1b5f21cf5d127c673f06f785751b7243b89991eea8d
7
+ data.tar.gz: 463fc4c4f769b9f822029c1e7c1142181098fed87d6f0238d7978dc2da72f14ca173cb5d171ae78bd9cc840652c6046326ed851fdede40eef5a4bec2eca32b24
data/CHANGELOG.md CHANGED
@@ -5,6 +5,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [0.1.17] - 05-31-2019
9
+
10
+ ### Updated
11
+ - Updated the way nodejs / npm is installed
12
+
13
+ ### Added
14
+ - Added docker-machine to the installation of docker
15
+
16
+ ## [0.1.16] - 05-27-2019
17
+
18
+ ### Fixed
19
+ - Lots of exception related stuff so if youre sudo apt-install fails, the whole
20
+ process isnt waste
21
+
8
22
  ## [0.1.13] - 05-26-2019
9
23
 
10
24
  ### Fixed
@@ -5,7 +5,7 @@ module VpsCli
5
5
  OMZ_PLUGINS = File.join(OMZ_DIR, 'custom', 'plugins')
6
6
  # Installes the required packages
7
7
  class Install
8
- # Runs the #all_install method, simply a wrapper to catch errors
8
+ # Run the #all_install method, simply a wrapper to catch errors
9
9
  # and check if the user is running linux
10
10
  # @see all_install
11
11
  def self.full
@@ -34,8 +34,8 @@ module VpsCli
34
34
  # @see #install_tmux_plugin_manager_and_plugins
35
35
  # @see #plug_install_vim_neovim
36
36
  # @see #install_gems
37
- # @see add_language_servers
38
- # @see npm_workaround
37
+ # @see #add_language_servers
38
+ # @see #node_js
39
39
  def self.install_non_apt_packages
40
40
  other_tools
41
41
  neovim_support
@@ -44,6 +44,7 @@ module VpsCli
44
44
  install_tmux_plugin_manager_and_plugins
45
45
  plug_install_vim_neovim
46
46
  install_gems
47
+ node_js
47
48
  add_language_servers
48
49
  end
49
50
 
@@ -69,7 +70,6 @@ module VpsCli
69
70
  # installs various other tools and fixes an issue with npm / nodejs
70
71
  # installs heroku, ngrok, and adds docker groups
71
72
  def self.other_tools
72
- npm_workaround
73
73
  # add heroku
74
74
  Rake.sh('sudo snap install heroku --classic')
75
75
  # add tmux plugin manager
@@ -80,7 +80,10 @@ module VpsCli
80
80
  end
81
81
  # add ngrok
82
82
  Rake.sh('sudo npm install --unsafe-perm -g ngrok')
83
+ end
83
84
 
85
+ # installs docker-machine as well as adding docker to sudo group
86
+ def self.docker
84
87
  # add docker
85
88
  username = Dir.home.split('/')[2]
86
89
  begin
@@ -90,21 +93,21 @@ module VpsCli
90
93
  puts 'docker group already exists.'
91
94
  puts 'moving on...'
92
95
  end
96
+
97
+ docker_machine = "base=https://github.com/docker/machine/releases/download/v0.16.0 && \
98
+ curl -L $base/docker-machine-$(uname -s)-$(uname -m) >/tmp/docker-machine && \
99
+ sudo install /tmp/docker-machine /usr/local/bin/docker-machine"
100
+ begin
101
+ Rake.sh(docker_machine)
102
+ rescue StandardError => e
103
+ VpsCli.errors << e.exception('Unable to install docker-machine')
104
+ end
93
105
  end
94
106
 
95
107
  # Lots of issues when using npm via apt-get, this seems to fix dependency issues
96
- def self.npm_workaround
97
- # update npm, there are some issues with ubuntu 18.10 removing npm
98
- # and then being unable to update it
99
- # for some reason npm and ubuntu dont play well
100
- pkgs = %w[libssl1.0-dev nodejs-dev node-gyp npm]
101
-
102
-
103
- pkgs.each do |pkg|
104
- Rake.sh("sudo apt-get install #{pkg} -y")
105
- rescue StandardError
106
- VpsCli.errors << StandardError.new("unable to install #{pkg}")
107
- end
108
+ def self.node_js
109
+ Rake.sh('curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -')
110
+ Rake.sh('sudo apt-get install -y nodejs')
108
111
 
109
112
  Rake.sh('sudo npm install -g npm')
110
113
  end
@@ -163,10 +166,10 @@ module VpsCli
163
166
  # will install tmux plugin manager
164
167
  def self.install_tmux_plugin_manager_and_plugins
165
168
  install_path = File.join(Dir.home, '.tmux', 'plugins', 'tpm')
166
- unless File.exist?(install_path)
167
- Rake.mkdir_p(install_path)
168
- Rake.sh("git clone https://github.com/tmux-plugins/tpm #{install_path}")
169
- end
169
+ return if File.exist?(install_path)
170
+
171
+ Rake.mkdir_p(install_path)
172
+ Rake.sh("git clone https://github.com/tmux-plugins/tpm #{install_path}")
170
173
  end
171
174
 
172
175
  # Installs all gems located in Packages::GEMS
@@ -193,6 +196,8 @@ module VpsCli
193
196
  Rake.sh("#{npm_install} vscode-css-languageserver-bin")
194
197
  # js
195
198
  Rake.sh("#{npm_install} javascript-typescript-langserver")
199
+ # Dockerfile
200
+ Rake.sh("#{npm_install} dockerfile-language-server-nodejs")
196
201
  end
197
202
  end
198
203
  end
@@ -10,7 +10,7 @@ module VpsCli
10
10
  openssh-client openssh-server dconf-cli gnome-terminal
11
11
  postgresql pry rubygems fail2ban
12
12
  neovim asciinema docker mosh yarn
13
- silversearcher-ag].freeze
13
+ silversearcher-ag virtualbox].freeze
14
14
 
15
15
  LIBS = %w[libssl1.0-dev libcurl4-openssl-dev libxml2-dev].freeze
16
16
 
@@ -1,3 +1,3 @@
1
1
  module VpsCli
2
- VERSION = "0.1.16"
2
+ VERSION = "0.1.17"
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.16
4
+ version: 0.1.17
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-27 00:00:00.000000000 Z
11
+ date: 2019-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler