opswalrus 1.0.21 → 1.0.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/opswalrus/bootstrap.sh +21 -4
- data/lib/opswalrus/host.rb +2 -1
- data/lib/opswalrus/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: 7a1877a6b3fcd76caa36a6cde337a3e3be3f1624014eb5e46f7433bc7de5b4b9
|
4
|
+
data.tar.gz: bc9a5a9d4432f1877bcc9e9d5df74abb7e7028bb001f45ed4a2336b3d31dcffa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72db6c06913c41b15d2fed62bc165039796123d6437ca0826f78f906e64f588e24fa294cdc1ebeb57607fda57408d0fd89f1e6fcc6ec54a9fd2b03ec214d3d28
|
7
|
+
data.tar.gz: 1924fe4c9c875ce00d10f4d19c11071f18357564e00187fd3b2640a8fe699c81a237e87e8963eb4c4713325e415cb85c81d0d00b787b59ed78c4d868e63f834b
|
data/Gemfile.lock
CHANGED
data/lib/opswalrus/bootstrap.sh
CHANGED
@@ -5,12 +5,13 @@ if [ -x "$(command -v /home/linuxbrew/.linuxbrew/bin/brew)" ]; then
|
|
5
5
|
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
6
6
|
|
7
7
|
# exit early if ruby already exists
|
8
|
-
if [ -x "$(command -v ruby)" ]; then
|
8
|
+
if [ -x "$(command -v $HOME/.rubies/ruby-3.2.2/bin/ruby)" ]; then
|
9
9
|
echo 'Ruby is already installed.' >&2
|
10
10
|
|
11
11
|
# make sure the latest opswalrus gem is installed
|
12
12
|
# todo: figure out how to install this differently, so that test versions will work
|
13
|
-
gem install opswalrus
|
13
|
+
# gem install opswalrus
|
14
|
+
$HOME/.rubies/ruby-3.2.2/bin/gem install opswalrus
|
14
15
|
|
15
16
|
exit 0
|
16
17
|
fi
|
@@ -56,8 +57,24 @@ eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
|
56
57
|
|
57
58
|
# install gcc, ruby, age
|
58
59
|
brew install gcc
|
59
|
-
brew install ruby
|
60
60
|
brew install age # https://github.com/FiloSottile/age
|
61
61
|
|
62
|
+
### install ruby
|
63
|
+
|
64
|
+
# 1. via homebrew
|
65
|
+
# brew install ruby
|
66
|
+
# this doesn't install some gems nicely
|
67
|
+
|
68
|
+
# 2. via ruby-install
|
69
|
+
# brew install bash grep wget curl md5sha1sum sha2 gnu-tar bzip2 xz patchutils gcc
|
70
|
+
brew install ruby-install
|
71
|
+
ruby-install --update
|
72
|
+
ruby-install ruby 3.2.2
|
73
|
+
|
74
|
+
# 3. rvm
|
75
|
+
# gpg2 --keyserver keyserver.ubuntu.com --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
|
76
|
+
# \curl -sSL https://get.rvm.io | bash -s stable --autolibs=homebrew
|
77
|
+
# rvm install 3.2.2
|
78
|
+
|
62
79
|
# install opswalrus gem
|
63
|
-
gem install opswalrus
|
80
|
+
$HOME/.rubies/ruby-3.2.2/bin/gem install opswalrus
|
data/lib/opswalrus/host.rb
CHANGED
@@ -187,7 +187,8 @@ module OpsWalrus
|
|
187
187
|
host
|
188
188
|
end
|
189
189
|
|
190
|
-
cmd = "OPSWALRUS_LOCAL_HOSTNAME='#{local_hostname_for_remote_host}'; /home/linuxbrew/.linuxbrew/bin/gem exec -g opswalrus ops"
|
190
|
+
# cmd = "OPSWALRUS_LOCAL_HOSTNAME='#{local_hostname_for_remote_host}'; /home/linuxbrew/.linuxbrew/bin/gem exec -g opswalrus ops"
|
191
|
+
cmd = "OPSWALRUS_LOCAL_HOSTNAME='#{local_hostname_for_remote_host}'; #{Dir.home}/.rubies/ruby-3.2.2/bin/gem install opswalrus exec -g opswalrus ops"
|
191
192
|
cmd << " -v" if verbose
|
192
193
|
cmd << " #{ops_command.to_s}"
|
193
194
|
cmd << " #{ops_command_options.to_s}" if ops_command_options
|
data/lib/opswalrus/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opswalrus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Ellis
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: amazing_print
|