Sha256: 21015007f507a4eb1ee016f61f4f2c57058d25193354edad4a3ef4e51d6bcd15

Contents?: true

Size: 583 Bytes

Versions: 1

Compression:

Stored size: 583 Bytes

Contents

# encoding: UTF-8

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

    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_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
gjp-0.39.0 lib/gjp/commands/generate_package_archive.rb