sheldon 0.5.0 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 09ae36b8d2caa6f99c7615897f8be3f0307d2046
4
- data.tar.gz: 983e9c673075ade9d355051d478ba2d5384c27a0
3
+ metadata.gz: 77f503f8e3f23dbd455cdbf31e66b28243828838
4
+ data.tar.gz: d99dd6d58f583394ab53caa2989d0201217a1e8d
5
5
  SHA512:
6
- metadata.gz: 574459c5e4af0e7039ff69d9c2e23ad53830414961cbed245a478966f7eb685cfff85b023d324cf0991240aeabf8d8f946857c8f77e9a93d91f120a3c7dc2fee
7
- data.tar.gz: 52be880c55eab8afbd7f9f34524179a74b55b5f5ebf60b6c790a119d83bc54ed75adf39b800a540a96ab989a04b7998aebd7b004cfec44fd244eac114f7aff24
6
+ metadata.gz: 9cfa3f6dec590d61f9e0a8991297bca46f76a8eee91f65903d5dc39ad16afe34415d6df16d6d33a453dd19e3ab2015dfc1db89f1e7c9b981d621be05536c56df
7
+ data.tar.gz: 1962d005ac8ba5be8a4dd393bd71c58717296967930b779c814b6ebab4bfd50a69e72b0bf82febf3ce693bbc7dc857e0fde7fd4a4e0a65a6fa06faaad8fd70f2
data/README.md CHANGED
@@ -7,9 +7,8 @@ Designed with the obsessive developer in mind, Sheldon makes it easy for you to
7
7
 
8
8
  ### Installation:
9
9
  1) `gem install sheldon`
10
-
11
- 2) Sync Sheldon's data directory (`~/sheldon` by default) across all of your machines.
12
- You can override the default folder location by setting the`SHELDON_DATA_DIR` environment variable on each host.
10
+ 2) `sheldon setup path/to/data-directory` to tell Sheldon where your existing data directory resides, or otherwise where a new data directory should be created.
11
+ 3) Sync your data directory across all your different hosts using your preferred method (git, rsync, Dropbox, Resilio Sync), so Sheldon's knowledge is available everywhere.
13
12
 
14
13
  ### How It Works
15
14
  #### Add files/folders to Sheldon (sheldon learn)
@@ -24,7 +23,6 @@ Sheldon will move the original file/directory into his data directory (defaults
24
23
  ls -al ~ | grep .gitconfig
25
24
  .gitconfig -> /Users/dave/sheldon/git/.gitconfig
26
25
  ```
27
- Keep Sheldon's data directory synchronised across all your devices using your tool of choice, Dropbox, Google Drive, BTSync.
28
26
 
29
27
  #### Recall your files on other machines (sheldon recall)
30
28
  Sheldon's `recall` command will symlink the file from the data directory to it's correct location on any filesystem (even under different home directories):
@@ -46,10 +44,8 @@ Recall .zshrc (Y/N): y
46
44
  #### Build Bespoke Configs For Your Host (sheldon build)
47
45
  Sometimes copying an entire config file between all your machine is overkill. What if you only want a subset of your configuration? Sheldon can help.
48
46
 
49
- Split your ssh config into `config_work` and `config_personal`
50
-
51
- Use Sheldon `learn` and `recall` to make the appropriate `_config` files available on the appropriate hosts.
52
-
47
+ Split your ssh config into `config_work` and `config_personal`
48
+ Use Sheldon `learn` and `recall` to make the appropriate `_config` files available on the appropriate hosts.
53
49
  Once the files are in the right place, use Sheldon `build` to create a single `config` file that can be easily sourced.
54
50
 
55
51
  ```shell
@@ -70,11 +66,6 @@ config
70
66
  source ~/.ssh/config
71
67
  ```
72
68
 
73
- ### Isn't This Just Homesick?
74
- Yes, yes it is. Unfortunately, I'd written 90% of Sheldon before I discovered the awesome [homesick](https://github.com/technicalpickles/homesick) so I decided to keep going.
75
- Sheldon's `build` command is (as far as I know) unique to Sheldon and will perhaps prove useful to those who chunk their configs.
76
- If nothing else, I hope this code will be a good point of reference for other developers (and indeed my future self).
77
-
78
69
  ### Contributing
79
70
 
80
71
  1. Fork it ( https://github.com/[your-github-username]/sheldon/fork )
data/bin/sheldon CHANGED
@@ -124,7 +124,7 @@ module CLI
124
124
  else
125
125
  red(e.message + "\nUse --debug to print backtrace")
126
126
  end
127
- exit(1)
127
+ exit!
128
128
  end
129
129
 
130
130
  def write_to_dotfile(key, value)
@@ -1,7 +1,7 @@
1
1
  require "fileutils"
2
2
 
3
3
  class Sheldon
4
- VERSION = "0.5.0".freeze
4
+ VERSION = "0.5.2".freeze
5
5
  attr_reader :brain, :builder
6
6
 
7
7
  def initialize(sheldon_data_dir)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sheldon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Jones
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-11 00:00:00.000000000 Z
11
+ date: 2018-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor