Sha256: 1722a29a4a6d04bb226e938277329a05d7a53e48573fcac7bd2edc13f97e8244

Contents?: true

Size: 575 Bytes

Versions: 2

Compression:

Stored size: 575 Bytes

Contents

module EtFullSystem
  #!/usr/bin/env ruby
  # frozen_string_literal: true
  require "rubygems"
  require "thor"

  class WorkspaceCommand < Thor

    desc "new", "Creates a new workspace in the current directory.  The directory must be empty"
    def new
      return unless yes?("Are you sure that you want to clone all system repositories for employment tribunals into this directory ?")
      return say "The current directory must be empty" unless Dir.empty?(Dir.pwd)
      puts `git clone --recursive git@github.com:hmcts/et-full-system-servers.git .`
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
et_full_system-0.1.55 lib/et_full_system/cli/workspace.rb
et_full_system-0.1.53 lib/et_full_system/cli/workspace.rb