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

- old
+ new

@@ -1,11 +1,13 @@ +# frozen_string_literal: true + require_relative 'base' module RubyTerraform module Commands class Init < Base - def switches + def options %w[ -backend -backend-config -force-copy -from-module @@ -13,18 +15,18 @@ -no-color -plugin-dir ] end - def subcommands(_values) + def subcommands(_parameters) %w[init] end - def arguments(values) - [values[:path]] + def arguments(parameters) + [parameters[:path]] end - def option_default_values(_opts) + def parameter_defaults(_parameters) { backend_config: {} } end end end end