govuk-connect 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/govuk_connect/cli.rb +20 -20
- data/lib/govuk_connect/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a1b3a80c3eec55973d5a21f131f0a12d836578d702488f9eed8cf20acf1042d
|
4
|
+
data.tar.gz: d91a53b4f152ba3609e71b4e4bdbe0918bb8090443b950ddefd3811dc19cbe6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff8f442e71c562b001119fb5c5eb92958d3e1b2a1da7dd31f9ca2d6483e693a62ca383797ced30d2130662ef1ce94a8aa3c5d6e890124066bbc914edfdcef52e
|
7
|
+
data.tar.gz: fa0ecc08631861e15aa2cfd6dacb3299e1783df665b2e3e4b0b9eec9c45019819fbb40c7e9a491fc66bf03a72b44da1bb88428efebadbe5955f58676e2cbd69c
|
data/lib/govuk_connect/cli.rb
CHANGED
@@ -15,22 +15,22 @@ class GovukConnect::CLI
|
|
15
15
|
self.class.bold(string)
|
16
16
|
end
|
17
17
|
|
18
|
-
USAGE_BANNER = "Usage: govuk
|
18
|
+
USAGE_BANNER = "Usage: gds govuk connect TYPE TARGET [options]".freeze
|
19
19
|
|
20
20
|
EXAMPLES = <<-EXAMPLES.freeze
|
21
|
-
govuk
|
21
|
+
gds govuk connect ssh --environment integration backend
|
22
22
|
|
23
|
-
govuk
|
23
|
+
gds govuk connect scp-push --environment integration backend filename.txt /tmp/
|
24
24
|
|
25
|
-
govuk
|
25
|
+
gds govuk connect scp-pull --environment integration backend /tmp/filename.txt ~/Downloads/
|
26
26
|
|
27
|
-
govuk
|
27
|
+
gds govuk connect app-console --environment staging publishing-api
|
28
28
|
|
29
|
-
govuk
|
29
|
+
gds govuk connect app-dbconsole -e integration whitehall_backend/whitehall
|
30
30
|
|
31
|
-
govuk
|
31
|
+
gds govuk connect rabbitmq -e staging aws/rabbitmq
|
32
32
|
|
33
|
-
govuk
|
33
|
+
gds govuk connect sidekiq-monitoring -e integration
|
34
34
|
EXAMPLES
|
35
35
|
|
36
36
|
MACHINE_TARGET_DESCRIPTION = <<-DOCS.freeze
|
@@ -39,17 +39,17 @@ class GovukConnect::CLI
|
|
39
39
|
|
40
40
|
The machine can be specified by name, for example:
|
41
41
|
|
42
|
-
govuk
|
42
|
+
gds govuk connect ssh -e integration #{bold('backend')}
|
43
43
|
|
44
44
|
If the hosting provider is ambiguous, you'll need to specify it prior
|
45
45
|
to the name, for example:
|
46
46
|
|
47
|
-
govuk
|
47
|
+
gds govuk connect ssh -e staging #{bold('aws/')}backend
|
48
48
|
|
49
49
|
If you want to connect to a specific machine, you can specify a number
|
50
50
|
after the name, for example:
|
51
51
|
|
52
|
-
govuk
|
52
|
+
gds govuk connect ssh -e integration backend#{bold(':2')}
|
53
53
|
DOCS
|
54
54
|
|
55
55
|
APP_TARGET_DESCRIPTION = <<-DOCS.freeze
|
@@ -58,17 +58,17 @@ class GovukConnect::CLI
|
|
58
58
|
|
59
59
|
The application is specified by name, for example:
|
60
60
|
|
61
|
-
govuk
|
61
|
+
gds govuk connect app-console -e integration #{bold('publishing-api')}
|
62
62
|
|
63
63
|
If the node class is ambiguous, you'll need to specify it prior to
|
64
64
|
the name, for example:
|
65
65
|
|
66
|
-
govuk
|
66
|
+
gds govuk connect app-console -e integration #{bold('whitehall_backend/')}whitehall
|
67
67
|
|
68
68
|
If you want to connect to a specific machine, you can specify a
|
69
69
|
number after the name, for example:
|
70
70
|
|
71
|
-
govuk
|
71
|
+
gds govuk connect app-console -e integration publishing-api#{bold(':2')}
|
72
72
|
DOCS
|
73
73
|
|
74
74
|
CONNECTION_TYPE_DESCRIPTIONS = {
|
@@ -405,7 +405,7 @@ class GovukConnect::CLI
|
|
405
405
|
print_empty_line
|
406
406
|
info "specify the node class and application mame, for example: "
|
407
407
|
node_classes.each do |node_class|
|
408
|
-
info "\n govuk
|
408
|
+
info "\n gds govuk connect app-console -e #{environment} #{node_class}/#{app_name}"
|
409
409
|
end
|
410
410
|
print_empty_line
|
411
411
|
|
@@ -449,7 +449,7 @@ class GovukConnect::CLI
|
|
449
449
|
print_empty_line
|
450
450
|
info "specify the hosting provider and node type, for example: "
|
451
451
|
hosting_providers.each do |hosting_provider|
|
452
|
-
info "\n govuk
|
452
|
+
info "\n gds govuk connect ssh #{bold(hosting_provider)}/#{node_type}"
|
453
453
|
end
|
454
454
|
info "\n"
|
455
455
|
|
@@ -715,9 +715,12 @@ class GovukConnect::CLI
|
|
715
715
|
@verbose = true
|
716
716
|
end
|
717
717
|
|
718
|
-
opts.on("-h", "--help", "Prints usage
|
718
|
+
opts.on("-h", "--help", "Prints usage examples and information") do
|
719
719
|
info opts
|
720
720
|
print_empty_line
|
721
|
+
info bold("EXAMPLES")
|
722
|
+
info EXAMPLES
|
723
|
+
print_empty_line
|
721
724
|
info bold("CONNECTION TYPES")
|
722
725
|
types.keys.each do |x|
|
723
726
|
info " #{x}"
|
@@ -730,9 +733,6 @@ class GovukConnect::CLI
|
|
730
733
|
print_empty_line
|
731
734
|
info bold("APPLICATION TARGET")
|
732
735
|
info APP_TARGET_DESCRIPTION
|
733
|
-
print_empty_line
|
734
|
-
info bold("EXAMPLES")
|
735
|
-
info EXAMPLES
|
736
736
|
exit
|
737
737
|
end
|
738
738
|
opts.on("-V", "--version", "Prints version information") do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk-connect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Government Digital Service
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-09-
|
11
|
+
date: 2020-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: climate_control
|
@@ -97,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
97
|
- !ruby/object:Gem::Version
|
98
98
|
version: '0'
|
99
99
|
requirements: []
|
100
|
-
rubygems_version: 3.
|
100
|
+
rubygems_version: 3.1.2
|
101
101
|
signing_key:
|
102
102
|
specification_version: 4
|
103
103
|
summary: govuk-connect command line tool
|