Class: Tetra::GenerateAllSubcommand

Inherits:
Subcommand
  • Object
show all
Defined in:
lib/tetra/ui/generate_all_subcommand.rb

Overview

tetra generate-all

Instance Method Summary collapse

Methods inherited from Subcommand

#bypass_parsing, #checking_exceptions, #configure_log_level, #ensure_dry_running, #format_path, #print_generation_result, #verbose=, #very_verbose=, #very_very_verbose=

Methods included from Logging

#log

Instance Method Details

#executeObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/tetra/ui/generate_all_subcommand.rb', line 9

def execute
  checking_exceptions do
    project = Tetra::Project.new(".")
    ensure_dry_running(:has_finished, project) do
      GenerateKitSubcommand.new(@invocation_path).execute

      GenerateScriptSubcommand.new(@invocation_path).execute

      command = GenerateSpecSubcommand.new(@invocation_path)
      command.filter = filter
      command.pom = pom
      command.execute
    end
  end
end