sct 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a7b7da8359137491424793ea19a9ae9d845bb11cb84a8df92b2c0135fe335948
4
- data.tar.gz: 6ebe428263d46c7fd9d36f43c7503c6b640ed6d2ce30f5ef32204e12d50a771e
3
+ metadata.gz: 87ea56635397f45831d78759ad65fa074bbde63827fc8c8fba75903f71bf45a6
4
+ data.tar.gz: 0c72ba5441f383c3dea4f5912c33734822774c93054fdd332a7f57042d46ec66
5
5
  SHA512:
6
- metadata.gz: fca4bbe727e063bd35b3676a7a98c1c2349b05d69517b9c2104871358b17a1571077c3735dc4967157580a1e6d5a83a3515b6fe833b1b5c13a82189e06af1af0
7
- data.tar.gz: f03408e6083a32af44de9f65784dee6d3b74deb9f72915babc3f3c8a50713eaf312697da77e50826391ab58f3990c7c81cbcb49cc881d3e231fa213fe50da61f
6
+ metadata.gz: 508892aaef3fffe214203682a28f8976abb681c01243154df5c4ef061a3ebd84c97a510858ae91ead399ab56e68329db6b318ff434afa9b48ca966aad62d89cb
7
+ data.tar.gz: 6b7868aaf906825de525197e174766edca7de50e90775cd9a130a48c6a4c2cd305250e455c964da5088cead2799250d4083a973101a1288bfd5ab1a093c80b5c
@@ -29,15 +29,6 @@ module Sct
29
29
  def execute args, options
30
30
  services = manifest["services"].to_a
31
31
 
32
- if services.length != 1
33
- error "Currently sct only supports a single service declaration in '#{@@file}'. Contact the infra guild if you consider this a limitation."
34
- end
35
-
36
- service, service_spec = services.first
37
-
38
- container = service_spec["container_name"]
39
- command = service_spec["command"] || ""
40
-
41
32
  if Sct::Helper.is_windows?
42
33
  host_machine_IP = (options.wsl_debugger ? `hostname -I | awk '{print $1}'` : `powershell.exe -c '(Test-Connection -ComputerName $env:computername -count 1).ipv4address.IPAddressToString' | dos2unix`).chomp
43
34
  elsif Sct::Helper.is_mac_os?
@@ -66,11 +57,20 @@ module Sct
66
57
  system "docker image prune -f"
67
58
  end
68
59
 
69
- return unless dc "rm --stop --force #{service}"
60
+ for service, settings in services
61
+ return unless dc "rm --stop --force #{service}"
62
+ end
63
+
64
+ begin
65
+ dc_dev "up", env
66
+ rescue SystemExit, Interrupt
67
+ end
70
68
 
71
- dc_dev "run --rm --service-ports --name #{container} #{service} #{command}", env
69
+ dc_dev "rm --force --stop"
72
70
 
73
- dc "up --detach #{service}"
71
+ for service, settings in services
72
+ dc "up --detach #{service}"
73
+ end
74
74
  end
75
75
 
76
76
  end
@@ -21,10 +21,6 @@ module Sct
21
21
 
22
22
  services = manifest["services"].to_a
23
23
 
24
- if services.length != 1
25
- error "Currently sct only supports a single service declaration in '#{file}'. Contact the infra guild if you consider this a limitation."
26
- end
27
-
28
24
  service, service_spec = services.first
29
25
 
30
26
  container = service_spec["container_name"]
@@ -1,3 +1,3 @@
1
1
  module Sct
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sct
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Reshad Farid
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-20 00:00:00.000000000 Z
11
+ date: 2021-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colored