Sha256: 94a4bf6360272bb7dad1dbd0481ad4093766bee03d07c9b214c08aa6b80dccec

Contents?: true

Size: 593 Bytes

Versions: 1

Compression:

Stored size: 593 Bytes

Contents

# encoding: UTF-8

module Tetra
  # tetra generate-package-archive
  class GeneratePackageArchiveCommand < Tetra::BaseCommand
    parameter "[DIRECTORY]", "path to a package directory (src/<package name>)", default: "."

    def execute
      checking_exceptions do
        project = Tetra::Project.new(".")
        ensure_dry_running(false, project) do
          package_name = project.get_package_name(directory)
          result_path = Tetra::Archiver.new(project).archive_package package_name
          print_generation_result(project, result_path)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tetra-0.40.0 lib/tetra/commands/generate_package_archive.rb