bin_install 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bin_install/brew/package.rb +16 -0
- data/lib/bin_install/shell.rb +1 -1
- data/lib/bin_install/version.rb +1 -1
- data/lib/bin_install/zsh.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2690a798f72b41eff1125342940db0b5ed2d43aa337ae040316207545364ad43
|
4
|
+
data.tar.gz: a918abf1a51698d43b2c75d3bbea10be695196d2655228c73814f5f4af8d0e92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5bb001b9cbc557ebc80d94dc8912d6e6884dc2021b80c2505772f62b39acb9d3ab446047bcf78f753bc11f29d39143105df8408e85803661b703ae293ea9e01
|
7
|
+
data.tar.gz: 74e177759c3e3a3c3e886bbb82e29791ca479c340c32f494a37ef77fa026f2a3d5a10d3ddb20d6c7a4e6d319628f4afff70dbe727ed92bd5ae013dff20d726f8
|
@@ -9,6 +9,14 @@ module BinInstall
|
|
9
9
|
BinInstall.system!("brew install #{package}")
|
10
10
|
end
|
11
11
|
|
12
|
+
def self.uninstall(package)
|
13
|
+
system("brew uninstall #{package}")
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.uninstall!(package)
|
17
|
+
BinInstall.system!("brew uninstall #{package}")
|
18
|
+
end
|
19
|
+
|
12
20
|
def self.upgrade(package)
|
13
21
|
if latest_version?(package)
|
14
22
|
puts "#{package} is already the latest version. Skipping.".blue
|
@@ -41,6 +49,14 @@ module BinInstall
|
|
41
49
|
end
|
42
50
|
end
|
43
51
|
|
52
|
+
def self.link(package)
|
53
|
+
system("brew link #{package}")
|
54
|
+
end
|
55
|
+
|
56
|
+
def self.link!(package)
|
57
|
+
BinInstall.system!("brew link #{package}")
|
58
|
+
end
|
59
|
+
|
44
60
|
def self.installed?(package)
|
45
61
|
system("brew list --versions #{package}")
|
46
62
|
end
|
data/lib/bin_install/shell.rb
CHANGED
data/lib/bin_install/version.rb
CHANGED
data/lib/bin_install/zsh.rb
CHANGED
@@ -30,7 +30,7 @@ module BinInstall
|
|
30
30
|
|
31
31
|
def self.print_reload_warning
|
32
32
|
puts 'Warning Zsh requires reloading the shell.'.yellow
|
33
|
-
puts 'After Zsh finishes installing you may to rerun the installer with:'
|
33
|
+
puts 'After Zsh finishes installing you may need to rerun the installer with:'
|
34
34
|
puts '$ gem install bin_install'.cyan
|
35
35
|
puts '$ bin/install'.cyan
|
36
36
|
end
|