boxy 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/boxy.rb +1 -0
- data/lib/boxy/brew.rb +4 -2
- data/lib/boxy/brew_cask.rb +4 -2
- data/lib/boxy/brew_tap.rb +10 -0
- data/lib/boxy/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1a4fe05ce77fb10838a7f2a8925125ac58a5c3f911b5f3879ec9408a6265bf7b
|
4
|
+
data.tar.gz: 4ec4355480c403ad016c0c216d78849c7a8e77fa9ca4478450037835f8da2221
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1048eabef0b36c203cec1d16e32124cc3edc006c9981aeba2a4a7b4f6efb0a79761e1ccf7c07f40418e7dbca0e03c200e1885675fd1a3b292a589237cca34a0
|
7
|
+
data.tar.gz: 1768abb582543374d4ddafe4844954a2337d7c76972755723bc07c847e3e61b4493a78e27b1a1a5a1155d40b519aee56c3173011c36c082a9489c36dfdd1e4f0
|
data/lib/boxy.rb
CHANGED
data/lib/boxy/brew.rb
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
module Boxy
|
2
2
|
class BrewPackageHandler
|
3
|
+
@@brews ||= `brew list`.split
|
4
|
+
# puts "Brews: #{@@brews.inspect}"
|
5
|
+
|
3
6
|
def install(name, options)
|
4
7
|
unless formula_installed?(name)
|
5
8
|
system "brew install #{name}"
|
@@ -11,8 +14,7 @@ module Boxy
|
|
11
14
|
private
|
12
15
|
|
13
16
|
def formula_installed?(name)
|
14
|
-
|
15
|
-
$? == 0
|
17
|
+
@@brews.include?(name)
|
16
18
|
end
|
17
19
|
end
|
18
20
|
|
data/lib/boxy/brew_cask.rb
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
module Boxy
|
2
2
|
class BrewCaskHandler
|
3
|
+
@@casks ||= `brew cask list`.split
|
4
|
+
# puts "Casks: #{@@casks.inspect}"
|
5
|
+
|
3
6
|
def install(name, options)
|
4
7
|
unless formula_installed?(name)
|
5
8
|
system "brew cask install #{name}"
|
@@ -11,8 +14,7 @@ module Boxy
|
|
11
14
|
private
|
12
15
|
|
13
16
|
def formula_installed?(name)
|
14
|
-
|
15
|
-
$? == 0
|
17
|
+
@@casks.include?(name)
|
16
18
|
end
|
17
19
|
end
|
18
20
|
|
data/lib/boxy/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: boxy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon-Erling Dahl
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2018-09-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: defaulty
|
@@ -131,6 +131,7 @@ files:
|
|
131
131
|
- lib/boxy.rb
|
132
132
|
- lib/boxy/brew.rb
|
133
133
|
- lib/boxy/brew_cask.rb
|
134
|
+
- lib/boxy/brew_tap.rb
|
134
135
|
- lib/boxy/command.rb
|
135
136
|
- lib/boxy/defaulty.rb
|
136
137
|
- lib/boxy/dsl.rb
|
@@ -158,9 +159,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
158
159
|
version: '0'
|
159
160
|
requirements: []
|
160
161
|
rubyforge_project:
|
161
|
-
rubygems_version: 2.
|
162
|
+
rubygems_version: 2.7.6
|
162
163
|
signing_key:
|
163
164
|
specification_version: 4
|
164
165
|
summary: Automates installation of mac computers
|
165
166
|
test_files: []
|
166
|
-
has_rdoc:
|