bullet_train-super_scaffolding 1.0.3 → 1.0.4
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b74d02debf9e4e33f53350fccef42b9ebdc719a55388d164ffed4936e891ada6
|
4
|
+
data.tar.gz: f54b12ae6b42083f23ad6cfec6a948c0648d3baf640308e8c31f9f1c60a45d95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ad73bfd8032dc0cf35e81a6c2fba7a6e2fb16cb75b1ac512590dd30658b38f0a8c81cb0c02436ad9104ee560234adafb1130e8d9bd59dc9da457908ff16b5a1
|
7
|
+
data.tar.gz: 6a3eb155cd4b23d821e0e2bf2482d59253fad99452de3d4236fd8d28f8ebdb50f4c257f665cbe432125b013f54f1b2846ea8dd5d99d227f4d1b8d666a7c9dab9
|
data/lib/scaffolding/script.rb
CHANGED
@@ -23,6 +23,11 @@ ARGV.each do |arg|
|
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
26
|
+
def standard_protip
|
27
|
+
puts "🏆 Protip: Commit your other changes before running Super Scaffolding so it's easy to undo if you (or we) make any mistakes."
|
28
|
+
puts "If you do that, you can reset to your last commit state by using `git checkout .` and `git clean -d -f` ."
|
29
|
+
end
|
30
|
+
|
26
31
|
def check_required_options_for_attributes(scaffolding_type, attributes, child, parent = nil)
|
27
32
|
attributes.each do |attribute|
|
28
33
|
parts = attribute.split(":")
|
@@ -1,6 +1,12 @@
|
|
1
1
|
namespace :bullet_train do
|
2
2
|
desc "Next-level code generation"
|
3
|
-
task :super_scaffolding => :environment do
|
3
|
+
task :super_scaffolding, [:all_options] => :environment do |t, arguments|
|
4
|
+
ARGV.pop while ARGV.any?
|
5
|
+
|
6
|
+
arguments[:all_options]&.split&.each do |argument|
|
7
|
+
ARGV.push(argument)
|
8
|
+
end
|
9
|
+
|
4
10
|
BulletTrain::SuperScaffolding::Runner.new.run
|
5
11
|
end
|
6
12
|
end
|