mac_setup 0.8.1 → 0.8.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9c4e9c261b3d1a91265e2aedd53b1a45d6e91340
4
- data.tar.gz: de0dc8873cf819ea49ebfe1573fb53807b7e177c
3
+ metadata.gz: 958d74da43b6b9b23c98203dfce55023ae821ead
4
+ data.tar.gz: f593796bcc578be1cc5db12693e9e0a9ef3f9955
5
5
  SHA512:
6
- metadata.gz: 7392b6f59c7398bd6efabf67cf1c497fd92ce404ccc031e2f98697d61e1dd775313d4e077f8392431557551add773a4704f5ab216bc2c4c2370b06edbea3c3e2
7
- data.tar.gz: 10051992c38e779f7924750d6e846a8c5012a27f2c93b6afbcad79432fa2524549837af094b7c583ac0243243e1035d4e883d35d62a65d0226a10ca940bee671
6
+ metadata.gz: adf67dfc0fab520beeec3e627f922f4e8b356fd137847e69d2152bcab9de337fece85057ab21e3b7e3b6248de4228c85d4081465c2cff696aa01c227f44bba52
7
+ data.tar.gz: 03b4895bfe6074bf8aa1ca9cfa3d239e53419e26be06c90fcb22a975a9d2e12ba3e611af5dd16d09e4870c10f273e10f2d5bcb445d199cc83913e6b058d8725b
data/exe/mac_setup CHANGED
@@ -8,7 +8,7 @@ command = ARGV.shift
8
8
 
9
9
  case command
10
10
  when "bootstrap"
11
- MacSetup.bootstrap(ARGV.take(2))
11
+ MacSetup.bootstrap(ARGV.first)
12
12
  when "install"
13
13
  # config_path = (ARGV - options)[0] || File.expand_path(DEFAULT_CONFIG_PATH)
14
14
 
@@ -13,7 +13,7 @@ module MacSetup
13
13
  def get_status(_status)
14
14
  end
15
15
 
16
- def bootstrap
16
+ def bootstrap(config)
17
17
  end
18
18
  end
19
19
  end
@@ -22,11 +22,14 @@ module MacSetup
22
22
  end
23
23
 
24
24
  def log_in(username)
25
- Shell.run("keybase login #{username}")
25
+ # Using backticks doesn't work with the keybase login process
26
+ Shell.raw("keybase login #{username}")
26
27
  end
27
28
 
28
29
  # TODO: Investigate making this work with kext permissions
29
30
  def install_volume
31
+ Shell.run("keybase install --components=fuse")
32
+ Shell.ask("Allow the extension in system preferences")
30
33
  Shell.run("keybase install --components=helper,fuse,mountdir,kbfs")
31
34
  end
32
35
 
@@ -8,9 +8,13 @@ module MacSetup
8
8
  `#{sanitize_command(command)}`
9
9
  end
10
10
 
11
+ def raw(command)
12
+ system(command)
13
+ end
14
+
11
15
  def ask(question)
12
16
  puts question
13
- gets.strip
17
+ STDIN.gets.strip
14
18
  end
15
19
 
16
20
  def password
@@ -1,3 +1,3 @@
1
1
  module MacSetup
2
- VERSION = "0.8.1"
2
+ VERSION = "0.8.2"
3
3
  end
data/lib/mac_setup.rb CHANGED
@@ -8,6 +8,7 @@ require "mac_setup/homebrew_runner"
8
8
  require "mac_setup/secrets"
9
9
  require "mac_setup/homebrew_installer"
10
10
  require "mac_setup/git_repo_installer"
11
+ require "mac_setup/symlink_path_builder"
11
12
  require "mac_setup/symlink_installer"
12
13
  require "mac_setup/plugin"
13
14
  require "mac_setup/plugins/keybase"
@@ -32,8 +33,8 @@ module MacSetup
32
33
 
33
34
  class << self
34
35
  def bootstrap(dotfiles_repo)
35
- GitRepoInstaller.install_repo(dotfiles_repo, dotfiles_path)
36
36
  HomebrewInstaller.run
37
+ GitRepoInstaller.install_repo(dotfiles_repo, dotfiles_path)
37
38
 
38
39
  config = Configuration.new(DEFAULT_CONFIG_PATH)
39
40
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mac_setup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Wean