heroku_hatchet 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/bin/hatchet +7 -1
- data/lib/hatchet/version.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: 2363b4e6ad949febf29929396202ad62215d4b8442fab1a5701273dc6356e0e8
|
4
|
+
data.tar.gz: 2834674840abffb9e1bdcf944629c6b00dc987fb17db61685a5b4e15f29bbd71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ba670133988a7297d8573c69c488bfdb4450cb5420778f372475a1523bd482cf40bd5fb1e4299e6118dd46fb3cb78cabed819099bdd56a0caa71c57ff6e8692
|
7
|
+
data.tar.gz: 4bf38e97b2afd7524e1ff81cac1fa1b4fb0cb8dbcd4fe62e49039aacdf79706def80b2ee8e8fe4a079355db559471895a42deec37e7304a94d31f4cc2ca985ff
|
data/CHANGELOG.md
CHANGED
data/bin/hatchet
CHANGED
@@ -20,7 +20,7 @@ class HatchetCLI < Thor
|
|
20
20
|
desc "install", "installs repos defined in 'hatchet.json'"
|
21
21
|
def install
|
22
22
|
warn_dot_ignore!
|
23
|
-
lock_hash =
|
23
|
+
lock_hash = load_lockfile
|
24
24
|
puts "Installing repos for hatchet"
|
25
25
|
dirs.map do |directory, git_repo|
|
26
26
|
Threaded.later do
|
@@ -38,6 +38,12 @@ class HatchetCLI < Thor
|
|
38
38
|
end.map(&:join)
|
39
39
|
end
|
40
40
|
|
41
|
+
def load_lockfile
|
42
|
+
return YAML.safe_load(File.read('hatchet.lock')).to_h
|
43
|
+
rescue Errno::ENOENT => e
|
44
|
+
raise "No such file found `hatchet.lock` please run `$ bundle exec hatchet lock`"
|
45
|
+
end
|
46
|
+
|
41
47
|
desc "locks to specific git commits", "updates hatchet.lock"
|
42
48
|
def lock
|
43
49
|
lock_hash = {}
|
data/lib/hatchet/version.rb
CHANGED