Class: Tetra::MoveJarsToKitSubcommand

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

Overview

tetra move-jars-to-kit

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



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/tetra/ui/move_jars_to_kit_subcommand.rb', line 6

def execute
  checking_exceptions do
    project = Tetra::Project.new(".")

    ensure_dry_running(:is_not_in_progress, project) do
      project.purge_jars.each do |original, final|
        puts "Replaced #{original} with symlink pointing to to #{final}"
      end
    end
  end
end