Class: KubernetesTemplateRendering::CLIArguments
- Inherits:
-
Struct
- Object
- Struct
- KubernetesTemplateRendering::CLIArguments
- Defined in:
- lib/kubernetes_template_rendering/cli_arguments.rb
Instance Attribute Summary collapse
-
#cluster_type ⇒ Object
Returns the value of attribute cluster_type.
-
#color ⇒ Object
Returns the value of attribute color.
-
#fork ⇒ Object
Returns the value of attribute fork.
-
#jsonnet_library_path ⇒ Object
Returns the value of attribute jsonnet_library_path.
-
#makeflags ⇒ Object
Returns the value of attribute makeflags.
-
#prune ⇒ Object
Returns the value of attribute prune.
-
#region ⇒ Object
Returns the value of attribute region.
-
#rendered_directory ⇒ Object
Returns the value of attribute rendered_directory.
-
#source_repo ⇒ Object
Returns the value of attribute source_repo.
-
#template_directory ⇒ Object
Returns the value of attribute template_directory.
-
#variable_overrides ⇒ Object
Returns the value of attribute variable_overrides.
Instance Method Summary collapse
Instance Attribute Details
#cluster_type ⇒ Object
Returns the value of attribute cluster_type
4 5 6 |
# File 'lib/kubernetes_template_rendering/cli_arguments.rb', line 4 def cluster_type @cluster_type end |
#color ⇒ Object
Returns the value of attribute color
4 5 6 |
# File 'lib/kubernetes_template_rendering/cli_arguments.rb', line 4 def color @color end |
#fork ⇒ Object
Returns the value of attribute fork
4 5 6 |
# File 'lib/kubernetes_template_rendering/cli_arguments.rb', line 4 def fork @fork end |
#jsonnet_library_path ⇒ Object
Returns the value of attribute jsonnet_library_path
4 5 6 |
# File 'lib/kubernetes_template_rendering/cli_arguments.rb', line 4 def jsonnet_library_path @jsonnet_library_path end |
#makeflags ⇒ Object
Returns the value of attribute makeflags
4 5 6 |
# File 'lib/kubernetes_template_rendering/cli_arguments.rb', line 4 def makeflags @makeflags end |
#prune ⇒ Object
Returns the value of attribute prune
4 5 6 |
# File 'lib/kubernetes_template_rendering/cli_arguments.rb', line 4 def prune @prune end |
#region ⇒ Object
Returns the value of attribute region
4 5 6 |
# File 'lib/kubernetes_template_rendering/cli_arguments.rb', line 4 def region @region end |
#rendered_directory ⇒ Object
Returns the value of attribute rendered_directory
4 5 6 |
# File 'lib/kubernetes_template_rendering/cli_arguments.rb', line 4 def rendered_directory @rendered_directory end |
#source_repo ⇒ Object
Returns the value of attribute source_repo
4 5 6 |
# File 'lib/kubernetes_template_rendering/cli_arguments.rb', line 4 def source_repo @source_repo end |
#template_directory ⇒ Object
Returns the value of attribute template_directory
4 5 6 |
# File 'lib/kubernetes_template_rendering/cli_arguments.rb', line 4 def template_directory @template_directory end |
#variable_overrides ⇒ Object
Returns the value of attribute variable_overrides
4 5 6 |
# File 'lib/kubernetes_template_rendering/cli_arguments.rb', line 4 def variable_overrides @variable_overrides end |
Instance Method Details
#fork? ⇒ Boolean
22 23 24 25 26 27 28 |
# File 'lib/kubernetes_template_rendering/cli_arguments.rb', line 22 def fork? if fork.nil? makeflags&.include?('-j') else fork end end |
#prune? ⇒ Boolean
30 31 32 |
# File 'lib/kubernetes_template_rendering/cli_arguments.rb', line 30 def prune? !!prune end |
#render_files? ⇒ Boolean
34 35 36 |
# File 'lib/kubernetes_template_rendering/cli_arguments.rb', line 34 def render_files? true end |
#valid? ⇒ Boolean
18 19 20 |
# File 'lib/kubernetes_template_rendering/cli_arguments.rb', line 18 def valid? rendered_directory && template_directory end |