Sha256: cd0f44b3139d65ad5816b3464159a489e21941bdf2f897dc4b551017ff173d83

Contents?: true

Size: 454 Bytes

Versions: 15

Compression:

Stored size: 454 Bytes

Contents

# encoding: UTF-8

module Tetra
  # tetra generate-script
  class GenerateScriptSubcommand < Tetra::Subcommand
    def execute
      checking_exceptions do
        project = Tetra::Project.new(".")
        ensure_dry_running(:has_finished, project) do
          result_path, conflict_count =
            Tetra::Package.new(project).to_script
          print_generation_result(project, result_path, conflict_count)
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
tetra-2.0.6 lib/tetra/ui/generate_script_subcommand.rb
tetra-2.0.5 lib/tetra/ui/generate_script_subcommand.rb
tetra-2.0.4 lib/tetra/ui/generate_script_subcommand.rb
tetra-2.0.3 lib/tetra/ui/generate_script_subcommand.rb
tetra-2.0.2 lib/tetra/ui/generate_script_subcommand.rb
tetra-2.0.1 lib/tetra/ui/generate_script_subcommand.rb
tetra-2.0.0 lib/tetra/ui/generate_script_subcommand.rb
tetra-1.2.2 lib/tetra/ui/generate_script_subcommand.rb
tetra-1.2.1 lib/tetra/ui/generate_script_subcommand.rb
tetra-1.2.0 lib/tetra/ui/generate_script_subcommand.rb
tetra-1.1.0 lib/tetra/ui/generate_script_subcommand.rb
tetra-1.0.0 lib/tetra/ui/generate_script_subcommand.rb
tetra-0.54.0 lib/tetra/ui/generate_script_subcommand.rb
tetra-0.53.0 lib/tetra/ui/generate_script_subcommand.rb
tetra-0.52.0 lib/tetra/ui/generate_script_subcommand.rb