Class: Gjp::GenerateAllCommand
- Inherits:
-
BaseCommand
- Object
- Clamp::Command
- BaseCommand
- Gjp::GenerateAllCommand
- Defined in:
- lib/gjp/commands/generate_all.rb
Instance Method Summary collapse
Methods inherited from BaseCommand
#checking_exceptions, #configure_log_level, #ensure_dry_running, #format_path, #print_generation_result, #verbose=, #very_verbose=, #very_very_verbose=
Methods included from Logging
Instance Method Details
#execute ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/gjp/commands/generate_all.rb', line 10 def execute checking_exceptions do project = Gjp::Project.new(".") ensure_dry_running(false, project) do package_name = project.get_package_name(directory) result_path = Gjp::Archiver.new(project).archive_kit(full?) print_generation_result(project, result_path) result_path, conflict_count = Gjp::SpecGenerator.new(project).generate_kit_spec print_generation_result(project, result_path, conflict_count) history_file = File.join(Dir.home, ".bash_history") result_path, conflict_count = Gjp::ScriptGenerator.new(project, history_file) .generate_build_script(package_name) print_generation_result(project, result_path, conflict_count) result_path = Gjp::Archiver.new(project).archive_package package_name print_generation_result(project, result_path) result_path, conflict_count = Gjp::SpecGenerator.new(project) .generate_package_spec package_name, pom, filter print_generation_result(project, result_path, conflict_count) end end end |