lib/ruby_terraform/commands/output.rb in ruby-terraform-0.65.0.pre.8 vs lib/ruby_terraform/commands/output.rb in ruby-terraform-0.65.0.pre.9

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + require 'stringio' require_relative 'base' module RubyTerraform module Commands @@ -8,30 +10,30 @@ return if defined?(@stdout) && @stdout.respond_to?(:string) @stdout = StringIO.new end - def switches + def options %w[ -json -module -no-color -raw -state ] end - def subcommands(_values) + def subcommands(_parameters) %w[output] end - def arguments(values) - [values[:name]] + def arguments(parameters) + [parameters[:name]] end - def do_after(opts) + def do_after(parameters) result = stdout.string - opts[:name] ? result.chomp : result + parameters[:name] ? result.chomp : result end end end end