myosx 0.2.6 → 0.2.7
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/myosx.rb +6 -6
- data/lib/myosx/dotfiles.rb +5 -4
- data/lib/myosx/homebrew.rb +4 -4
- data/lib/myosx/{config.rb → konfig.rb} +1 -1
- data/lib/myosx/rbenv.rb +3 -3
- data/lib/myosx/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23c62854596ffa8c551f18473acf3764361f4214
|
4
|
+
data.tar.gz: bbf646aee48e4b3adb30a45e75af961fc16d3b9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa5d68e0be7fce656fabea9bb0fcd423aeb37aa7be68e270d62cf918bfad4cc1e7d88293a15c1110e3d3042b3a1fc0629fe7aeb1827ffd5e492e4eb5312eed86
|
7
|
+
data.tar.gz: c11f2ee668161fa8ef7310d5357b23b53674585c96064d9c85faba0f933b317fb501cf99883cd738a4625339f9dd194704a8be1a86a8ff71546a699ec72a836a
|
data/lib/myosx.rb
CHANGED
@@ -1,28 +1,28 @@
|
|
1
1
|
require "myosx/version"
|
2
|
-
require "myosx/
|
2
|
+
require "myosx/konfig"
|
3
3
|
require "myosx/dotfiles"
|
4
4
|
require "myosx/homebrew"
|
5
5
|
require "myosx/rbenv"
|
6
6
|
|
7
7
|
module Myosx
|
8
|
-
class Exec
|
8
|
+
class Exec
|
9
9
|
def initialize
|
10
|
-
|
10
|
+
Konfig.new.create_workspace(Konfig.new.workspace_directory)
|
11
11
|
|
12
12
|
unless system("which brew >/dev/null 2>&1")
|
13
13
|
puts "Error: can't find homebrew in PATH."
|
14
14
|
exit
|
15
15
|
end
|
16
16
|
|
17
|
-
if
|
17
|
+
if Konfig.new.global['dotfiles']
|
18
18
|
Dotfiles.new.exec
|
19
19
|
end
|
20
20
|
|
21
|
-
if
|
21
|
+
if Konfig.new.global['homebrew']
|
22
22
|
Homebrew.new.exec
|
23
23
|
end
|
24
24
|
|
25
|
-
if
|
25
|
+
if Konfig.new.global['rbenv']
|
26
26
|
Rbenv.new.exec
|
27
27
|
end
|
28
28
|
end
|
data/lib/myosx/dotfiles.rb
CHANGED
@@ -4,15 +4,16 @@
|
|
4
4
|
#
|
5
5
|
require 'yaml'
|
6
6
|
require 'git'
|
7
|
-
require_relative 'config'
|
8
7
|
|
9
|
-
|
8
|
+
require_relative 'konfig'
|
9
|
+
|
10
|
+
class Dotfiles
|
10
11
|
def config
|
11
|
-
|
12
|
+
Konfig.new.global['dotfiles']
|
12
13
|
end
|
13
14
|
|
14
15
|
def dotfiledir
|
15
|
-
File.join(
|
16
|
+
File.join(Konfig.new.workspace_directory, 'dotfiles')
|
16
17
|
end
|
17
18
|
|
18
19
|
def repo(repo, target, local_repo = 'dotfiles')
|
data/lib/myosx/homebrew.rb
CHANGED
@@ -4,12 +4,12 @@
|
|
4
4
|
#
|
5
5
|
require 'yaml'
|
6
6
|
require 'git'
|
7
|
-
require_relative '
|
7
|
+
require_relative 'konfig'
|
8
8
|
|
9
|
-
class Homebrew
|
9
|
+
class Homebrew
|
10
10
|
|
11
11
|
def config
|
12
|
-
|
12
|
+
Konfig.new.global['homebrew']
|
13
13
|
end
|
14
14
|
|
15
15
|
def packages
|
@@ -17,7 +17,7 @@ class Homebrew < Config
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def brewfile
|
20
|
-
return File.join(
|
20
|
+
return File.join(Konfig.new.workspace_directory, 'Brewfile')
|
21
21
|
end
|
22
22
|
|
23
23
|
def brewfile_out(packages)
|
data/lib/myosx/rbenv.rb
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
# This class does not add the shims path to your shell or manage any aliases
|
6
6
|
#
|
7
7
|
require 'yaml'
|
8
|
-
require_relative '
|
8
|
+
require_relative 'konfig'
|
9
9
|
|
10
|
-
class Rbenv
|
10
|
+
class Rbenv
|
11
11
|
def config
|
12
|
-
|
12
|
+
Konfig.new.global['rbenv']
|
13
13
|
end
|
14
14
|
|
15
15
|
def install_rbenv
|
data/lib/myosx/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: myosx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Laura Martin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: git
|
@@ -86,10 +86,10 @@ files:
|
|
86
86
|
- bin/setup
|
87
87
|
- example.myosx.cnf
|
88
88
|
- lib/myosx.rb
|
89
|
-
- lib/myosx/config.rb
|
90
89
|
- lib/myosx/dotfiles.rb
|
91
90
|
- lib/myosx/homebrew.rb
|
92
91
|
- lib/myosx/hub.rb
|
92
|
+
- lib/myosx/konfig.rb
|
93
93
|
- lib/myosx/pass.rb
|
94
94
|
- lib/myosx/rbenv.rb
|
95
95
|
- lib/myosx/shell.rb
|
@@ -115,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
115
|
version: '0'
|
116
116
|
requirements: []
|
117
117
|
rubyforge_project:
|
118
|
-
rubygems_version: 2.5
|
118
|
+
rubygems_version: 2.2.5
|
119
119
|
signing_key:
|
120
120
|
specification_version: 4
|
121
121
|
summary: myosx configures OSX how I like it
|