mokkku 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/mokkku +14 -0
- data/lib/mokkku/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: 9dd97441b73b6ba8795909cfc1115ff90ca6b63a16fe0a2e9ea00a3d75f44933
|
4
|
+
data.tar.gz: 79041506c510a3c642c8cf0e9b0db97117df43f6b8a3e09257dcd8e6ded08721
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa603c3e83ee372173558dfeabbb0969f9eb6cd45a313c447555e71961446fa97416c9a563f54bd3f810a7e5aa984881a419d01208e163a166b59dbcacf0d186
|
7
|
+
data.tar.gz: 94d08b8ea75f384f78f473794a5862e614c53fa50388fee8b51bdc4283fdc869f81394e66d0873740fad795a007f119fb4231c6311d78c39c97e5848eee5a4ee
|
data/bin/mokkku
CHANGED
@@ -38,4 +38,18 @@ OptionParser.new do |opts|
|
|
38
38
|
end
|
39
39
|
end.parse!
|
40
40
|
|
41
|
+
# Load Rails project
|
42
|
+
begin
|
43
|
+
require File.join(base_dir, 'config', 'boot')
|
44
|
+
require File.join(base_dir, 'config', 'environment')
|
45
|
+
rescue LoadError
|
46
|
+
puts "\nUh-oh! You must be in the root directory of a Rails project.\n"
|
47
|
+
raise
|
48
|
+
end
|
49
|
+
|
50
|
+
# Load Rails models
|
51
|
+
Rails.application.eager_load! if defined?(Rails)
|
52
|
+
# Rails 6 support
|
53
|
+
Zeitwerk::Loader.eager_load_all if defined?(Zeitwerk)
|
54
|
+
|
41
55
|
Mokkku::Cli::Runner.start(options)
|
data/lib/mokkku/version.rb
CHANGED