class EtFullSystem::WorkspaceCommand
Public Instance Methods
checkout(branch_or_commit)
click to toggle source
# File lib/et_full_system/cli/workspace.rb, line 23 def checkout(branch_or_commit) return say "Please change to a workspace setup by this tool" unless File.exist?(File.join(Dir.pwd, 'et-full-system.dir')) puts `git fetch` puts `git checkout #{branch_or_commit}` puts `git submodule update` end
new()
click to toggle source
# File lib/et_full_system/cli/workspace.rb, line 10 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
pull()
click to toggle source
# File lib/et_full_system/cli/workspace.rb, line 17 def pull return say "Please change to a workspace setup by this tool" unless File.exist?(File.join(Dir.pwd, 'et-full-system.dir')) puts `git pull && git submodule update` end