et_full_system 0.1.55 → 0.1.56
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/et_full_system/cli/workspace.rb +13 -0
- data/lib/et_full_system/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2739cdbd45b6f33daf65e14e06f7ee1fa7e4760dc552c3190c1ace70bf1dd65c
|
4
|
+
data.tar.gz: 2945f97f716f687c2c8986d31809ccce3cacc981acfb1da4c069e097e692d1f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96385902cd1b682da9ecef01e61ac99f366120deecbfe084e8a362bef1d1f3ed19c472e4ed177caed5b0bf4bad50c01590d9804a13b92b00c2d53e3ade38f024
|
7
|
+
data.tar.gz: 2480587ce3dff471bd7b0963f5d862f9eb95e07494b410e5f0d90c0401271835f9f47761bbb9a36e486719ea8be5344506e30f9d6e5ce77d6a461290d9c10d09
|
data/Gemfile.lock
CHANGED
@@ -12,5 +12,18 @@ module EtFullSystem
|
|
12
12
|
return say "The current directory must be empty" unless Dir.empty?(Dir.pwd)
|
13
13
|
puts `git clone --recursive git@github.com:hmcts/et-full-system-servers.git .`
|
14
14
|
end
|
15
|
+
|
16
|
+
desc "pull", "Pulls the latest version from the repository and updates the submodules"
|
17
|
+
def pull
|
18
|
+
return say "Please change to a workspace setup by this tool" unless File.exist?(File.join(Dir.pwd, 'et-full-system.dir'))
|
19
|
+
puts `git pull && git submodule update`
|
20
|
+
end
|
21
|
+
|
22
|
+
desc "checkout <branch-or-commit>", "Checkout a branch or a specific commit, then updates the submodules"
|
23
|
+
def checkout(branch_or_commit)
|
24
|
+
return say "Please change to a workspace setup by this tool" unless File.exist?(File.join(Dir.pwd, 'et-full-system.dir'))
|
25
|
+
puts `git checkout #{branch_or_commit}`
|
26
|
+
puts `git submodule update`
|
27
|
+
end
|
15
28
|
end
|
16
29
|
end
|