hippo-cli 1.1.1 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/hippo +1 -1
- data/cli/apply_config.rb +0 -4
- data/cli/apply_services.rb +0 -4
- data/cli/create.rb +9 -13
- data/cli/deploy.rb +0 -4
- data/cli/exec.rb +23 -0
- data/cli/install.rb +0 -4
- data/cli/key.rb +1 -4
- data/cli/kubectl.rb +0 -4
- data/cli/logs.rb +0 -4
- data/cli/objects.rb +0 -4
- data/cli/package_install.rb +0 -4
- data/cli/package_list.rb +0 -4
- data/cli/package_notes.rb +0 -4
- data/cli/package_test.rb +0 -4
- data/cli/package_uninstall.rb +0 -4
- data/cli/package_upgrade.rb +0 -4
- data/cli/package_values.rb +1 -5
- data/cli/prepare.rb +0 -4
- data/cli/readme.rb +18 -0
- data/cli/run.rb +1 -5
- data/cli/secrets.rb +0 -4
- data/cli/setup.rb +71 -0
- data/cli/stages.rb +4 -7
- data/cli/status.rb +0 -4
- data/cli/tidy.rb +33 -0
- data/cli/update.rb +22 -0
- data/cli/vars.rb +0 -4
- data/lib/hippo.rb +7 -0
- data/lib/hippo/bootstrap_parser.rb +22 -0
- data/lib/hippo/cli.rb +31 -27
- data/lib/hippo/image.rb +7 -1
- data/lib/hippo/liquid_filters.rb +15 -0
- data/lib/hippo/manifest.rb +17 -17
- data/lib/hippo/object_definition.rb +1 -1
- data/lib/hippo/package.rb +1 -1
- data/lib/hippo/repository_tag.rb +3 -2
- data/lib/hippo/secret_manager.rb +27 -22
- data/lib/hippo/stage.rb +86 -40
- data/lib/hippo/util.rb +61 -1
- data/lib/hippo/version.rb +1 -1
- data/lib/hippo/working_directory.rb +180 -0
- data/template/Hippofile +1 -2
- metadata +10 -26
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/cli/console.rb +0 -33
- metadata.gz.sig +0 -0
data/template/Hippofile
CHANGED
@@ -7,7 +7,7 @@ name: myapp
|
|
7
7
|
|
8
8
|
images:
|
9
9
|
main:
|
10
|
-
host:
|
10
|
+
host: registry.mycompany.commit
|
11
11
|
name: myorg/myapp
|
12
12
|
tag: latest
|
13
13
|
# Alternatively, load the tag name from the current HEAD commit of a
|
@@ -17,7 +17,6 @@ images:
|
|
17
17
|
# fromRepository:
|
18
18
|
# url: git@github.com:myorg/myapp
|
19
19
|
# branch: master
|
20
|
-
|
21
20
|
# If you wish, you can define a console command that allows you to easil
|
22
21
|
# open a console using `hippo [stage] console`
|
23
22
|
#
|
metadata
CHANGED
@@ -1,36 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hippo-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Cooke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
-
|
12
|
-
-----BEGIN CERTIFICATE-----
|
13
|
-
MIIDZDCCAkygAwIBAgIBATANBgkqhkiG9w0BAQUFADA8MQswCQYDVQQDDAJtZTEZ
|
14
|
-
MBcGCgmSJomT8ixkARkWCWFkYW1jb29rZTESMBAGCgmSJomT8ixkARkWAmlvMB4X
|
15
|
-
DTE5MDUxNDEzNTIxM1oXDTIwMDUxMzEzNTIxM1owPDELMAkGA1UEAwwCbWUxGTAX
|
16
|
-
BgoJkiaJk/IsZAEZFglhZGFtY29va2UxEjAQBgoJkiaJk/IsZAEZFgJpbzCCASIw
|
17
|
-
DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMUohRlPw3iIOhWZq+qf5N1ATm1H
|
18
|
-
7gBO4TpsUrw/FL/+urFExzt1+4MPfiKjILge48vKpjoTfuZusRsOQebaFidOfmhk
|
19
|
-
sEqa941CvN3OeUYARA53ORlmoLDLmdcrxq430+woFp4uuSYwim/2YQgIMdgiOTqs
|
20
|
-
cHaM9yh/xUGMnH4lB9bBDNfggMmkSFb6P8Ax4rvdX3EVv5P58RHwHszd+UI4fyy9
|
21
|
-
0W143m6ntNmqena4ZOc7HtWtRyDHHXXzlGgmghKEZgOA+/LO53VHp+cM0JqB7lq5
|
22
|
-
ZxN43fQrIT5yY9Dy7dRBeiDo53WNJPspa5soEivCBVYstMqfd+LGk/BnsyMCAwEA
|
23
|
-
AaNxMG8wCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFGlRGerNfr6J
|
24
|
-
Dprgl6DQ3kLvgVvPMBoGA1UdEQQTMBGBD21lQGFkYW1jb29rZS5pbzAaBgNVHRIE
|
25
|
-
EzARgQ9tZUBhZGFtY29va2UuaW8wDQYJKoZIhvcNAQEFBQADggEBAK2TQPMeW9qh
|
26
|
-
NDNoVbbplfSc8/uscSP2DfssCbhXQqeDfF2z+kQpxv8iAc++KTlotqOaX5A6RvLb
|
27
|
-
NvuwMHPJRQJ2e8rbuN8Sh3tUjbkAEv3SFw4hqbKmtp0j2oKBU0dxHWNfp+5ulh2l
|
28
|
-
UXnQAt4zg3v1hTD1VrwLqG/hyk9xAaWB38lEDBuPhLrDIdDJklg9bD1E2TUvoMrg
|
29
|
-
L6TIbdP1TRrxINO1D9GzboR+OuWos7qMLBEEbjat/fQchYrW1KLcHIUCyrGkZTLm
|
30
|
-
3wUJNGnT5XYq+qvTqmjkTSTfdGvZCM63C6bGdN5CAyMokGOOatGqyCMAONolWnfC
|
31
|
-
gm3t2GWWrxY=
|
32
|
-
-----END CERTIFICATE-----
|
33
|
-
date: 2020-02-10 00:00:00.000000000 Z
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-08-26 00:00:00.000000000 Z
|
34
12
|
dependencies:
|
35
13
|
- !ruby/object:Gem::Dependency
|
36
14
|
name: encryptor
|
@@ -143,9 +121,9 @@ files:
|
|
143
121
|
- bin/hippo
|
144
122
|
- cli/apply_config.rb
|
145
123
|
- cli/apply_services.rb
|
146
|
-
- cli/console.rb
|
147
124
|
- cli/create.rb
|
148
125
|
- cli/deploy.rb
|
126
|
+
- cli/exec.rb
|
149
127
|
- cli/help.rb
|
150
128
|
- cli/init.rb
|
151
129
|
- cli/install.rb
|
@@ -161,10 +139,14 @@ files:
|
|
161
139
|
- cli/package_upgrade.rb
|
162
140
|
- cli/package_values.rb
|
163
141
|
- cli/prepare.rb
|
142
|
+
- cli/readme.rb
|
164
143
|
- cli/run.rb
|
165
144
|
- cli/secrets.rb
|
145
|
+
- cli/setup.rb
|
166
146
|
- cli/stages.rb
|
167
147
|
- cli/status.rb
|
148
|
+
- cli/tidy.rb
|
149
|
+
- cli/update.rb
|
168
150
|
- cli/vars.rb
|
169
151
|
- cli/version.rb
|
170
152
|
- lib/hippo.rb
|
@@ -174,6 +156,7 @@ files:
|
|
174
156
|
- lib/hippo/error.rb
|
175
157
|
- lib/hippo/extensions.rb
|
176
158
|
- lib/hippo/image.rb
|
159
|
+
- lib/hippo/liquid_filters.rb
|
177
160
|
- lib/hippo/manifest.rb
|
178
161
|
- lib/hippo/object_definition.rb
|
179
162
|
- lib/hippo/package.rb
|
@@ -182,6 +165,7 @@ files:
|
|
182
165
|
- lib/hippo/stage.rb
|
183
166
|
- lib/hippo/util.rb
|
184
167
|
- lib/hippo/version.rb
|
168
|
+
- lib/hippo/working_directory.rb
|
185
169
|
- template/Hippofile
|
186
170
|
homepage: https://github.com/adamcooke/hippo
|
187
171
|
licenses:
|
checksums.yaml.gz.sig
DELETED
Binary file
|
data.tar.gz.sig
DELETED
Binary file
|
data/cli/console.rb
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
command :console do
|
4
|
-
desc 'Open a console based on the configuration'
|
5
|
-
|
6
|
-
option '-h', '--hippofile [RECIPE]', 'The path to the Hippofile (defaults: ./Hippofile)' do |value, options|
|
7
|
-
options[:hippofile] = value.to_s
|
8
|
-
end
|
9
|
-
|
10
|
-
option '-d', '--deployment [NAME]', 'The name of the deployment to use' do |value, options|
|
11
|
-
options[:deployment] = value.to_s
|
12
|
-
end
|
13
|
-
|
14
|
-
option '-c', '--command [NAME]', 'The command to run' do |value, options|
|
15
|
-
options[:command] = value.to_s
|
16
|
-
end
|
17
|
-
|
18
|
-
action do |context|
|
19
|
-
require 'hippo/cli'
|
20
|
-
cli = Hippo::CLI.setup(context)
|
21
|
-
|
22
|
-
if cli.manifest.console.nil?
|
23
|
-
raise Error, 'No console configuration has been provided in Hippofile'
|
24
|
-
end
|
25
|
-
|
26
|
-
cli.preflight
|
27
|
-
|
28
|
-
time = Time.now.to_i
|
29
|
-
deployment_name = context.options[:deployment] || cli.manifest.console['deployment']
|
30
|
-
command = context.options[:command] || cli.manifest.console['command'] || 'bash'
|
31
|
-
exec cli.stage.kubectl("exec -it deployment/#{deployment_name} -- #{command}").join(' ')
|
32
|
-
end
|
33
|
-
end
|
metadata.gz.sig
DELETED
Binary file
|