lib/ruby_helm/commands/base.rb in ruby_helm-0.1.2 vs lib/ruby_helm/commands/base.rb in ruby_helm-0.2.0.pre.1

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + require 'lino' module RubyHelm module Commands class Base @@ -24,30 +26,28 @@ def execute(opts = {}) builder = instantiate_builder do_before(opts) configure_command(builder, opts) - .build - .execute( - stdin: stdin, - stdout: stdout, - stderr: stderr) + .build + .execute( + stdin: stdin, + stdout: stdout, + stderr: stderr + ) do_after(opts) end def instantiate_builder Lino::CommandLineBuilder - .for_command(binary) - .with_option_separator('=') + .for_command(binary) + .with_option_separator('=') end - def do_before(opts) - end + def do_before(opts); end - def configure_command(builder, opts) - end + def configure_command(builder, opts); end - def do_after(opts) - end + def do_after(opts); end end end -end \ No newline at end of file +end