Sha256: a92902551befd6b0f94a5796afa16de61e1e06848c2f1b89a3248b2012624cd1

Contents?: true

Size: 556 Bytes

Versions: 2

Compression:

Stored size: 556 Bytes

Contents

# encoding: UTF-8

module Tetra
  # tetra generate-package-script
  class GeneratePackageScriptCommand < Tetra::BaseCommand
    def execute
      checking_exceptions do
        project = Tetra::Project.new(".")
        ensure_dry_running(false, project) do
          history_file = File.join(Dir.home, ".bash_history")
          result_path, conflict_count = Tetra::ScriptGenerator.new(project, history_file)
            .generate_build_script
          print_generation_result(project, result_path, conflict_count)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tetra-0.43.0 lib/tetra/commands/generate_package_script.rb
tetra-0.42.0 lib/tetra/commands/generate_package_script.rb