brut 0.21.0.pre.3 → 0.21.0.pre.4
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 +4 -4
- data/lib/brut/cli/apps/db.rb +1 -1
- data/lib/brut/cli/commands/compound_command.rb +2 -2
- data/lib/brut/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: 8cff0eb0b3ce46296da1c7045fa5a35374adb54559024074c4ca5e927c1a3ea7
|
|
4
|
+
data.tar.gz: 2a7a04b47259bfc6f95cd8386e8f07040185aa1175d4c538de05412567e7b3dc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 25ffd6054f5ac0385969b59ec549a31afcb1187c3dd2bf013bc50a7047880471ac03ad5720ce2f07bf0ed40bbd0ad951a1a196c34369da24cbfbcf79c24b5bfe
|
|
7
|
+
data.tar.gz: 3c7ff73e3bbf9353e034ec7c8ed4174b52025df7976bc19fe3b846f28b6456d46ed875560237ef49418af4f60796c8e2510ea926e9f2ebfcb6cba4fa29d43888
|
data/lib/brut/cli/apps/db.rb
CHANGED
|
@@ -282,7 +282,7 @@ class Brut::CLI::Apps::DB < Brut::CLI::Commands::BaseCommand
|
|
|
282
282
|
def opts = [
|
|
283
283
|
[ "--seed", "Load seed data after rebuild" ]
|
|
284
284
|
]
|
|
285
|
-
def
|
|
285
|
+
def sub_commands(execution_context)
|
|
286
286
|
default_commands = [
|
|
287
287
|
Drop.new,
|
|
288
288
|
Create.new,
|
|
@@ -18,7 +18,7 @@ class Brut::CLI::Commands::CompoundCommand < Brut::CLI::Commands::BaseCommand
|
|
|
18
18
|
# methods on the passed `execution_context`. Methods like `puts`, `system!`, and `options` **will not work** here
|
|
19
19
|
# since they assume an ivar named `@execution_context` has been set.
|
|
20
20
|
def execute(execution_context)
|
|
21
|
-
|
|
21
|
+
sub_commands(execution_context).each do |command|
|
|
22
22
|
execute_result = Brut::CLI::ExecuteResult.new do
|
|
23
23
|
delegate_to_command(command,execution_context)
|
|
24
24
|
end
|
|
@@ -39,5 +39,5 @@ class Brut::CLI::Commands::CompoundCommand < Brut::CLI::Commands::BaseCommand
|
|
|
39
39
|
# to return.
|
|
40
40
|
#
|
|
41
41
|
# @return [Array<Brut::CLI::Commands::BaseCommand>]
|
|
42
|
-
def
|
|
42
|
+
def sub_commands(execution_context) = @commands
|
|
43
43
|
end
|
data/lib/brut/version.rb
CHANGED