Sha256: c6e6f6c61af61fa59ccef3e93d664d421aa9dbd1cdfb79b1042304dbedb70383

Contents?: true

Size: 515 Bytes

Versions: 3

Compression:

Stored size: 515 Bytes

Contents

# encoding: UTF-8

module Tetra
  # tetra generate-script
  class GenerateScriptCommand < Tetra::BaseCommand
    def execute
      checking_exceptions do
        project = Tetra::Project.new(".")
        ensure_dry_running(false, project) do
          history = File.join(Dir.home, ".bash_history")
          result_path, conflict_count =
            Tetra::BuiltPackage.new(project).to_script(history)
          print_generation_result(project, result_path, conflict_count)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tetra-0.46.0 lib/tetra/commands/generate_script.rb
tetra-0.45.0 lib/tetra/commands/generate_script.rb
tetra-0.44.0 lib/tetra/commands/generate_script.rb