Skip to content

Commit

Permalink
clean up extra_args
Browse files Browse the repository at this point in the history
  • Loading branch information
ozdanborne committed Apr 3, 2019
1 parent 631988b commit 770c222
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions _plugins/helm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ module Jekyll
class RenderHelmTagBlock < Liquid::Block
def initialize(tag_name, extra_args, liquid_options)
super
if not extra_args.empty?
@extra_args = extra_args
end

@extra_args = extra_args
end
def render(context)
text = super
Expand Down Expand Up @@ -58,9 +57,7 @@ def render(context)
-f #{tv.path} \
-f #{t.path}"""

if @extra_args
cmd += " " + @extra_args
end
cmd += " " + @extra_args.to_s

out = `#{cmd}`

Expand Down

0 comments on commit 770c222

Please sign in to comment.