class RubyTerraform::Commands::ProvidersSchema
Wraps the +terraform providers schema+ command which prints out a json representation of the schemas for all providers used in the current configuration.
For options accepted on construction, see {#initialize}.
When executing an instance of {ProvidersSchema} via {#execute}, the following options are supported:
-
:chdir
: the path of a working directory to switch to before executing the given subcommand.
@example Basic Invocation
RubyTerraform::Commands::ProvidersSchema.new.execute( directory: 'infra/networking')
Public Instance Methods
options()
click to toggle source
@!visibility private
Calls superclass method
RubyTerraform::Options::Global#options
# File lib/ruby_terraform/commands/providers_schema.rb, line 33 def options %w[-json] + super end
parameter_overrides(_parameters)
click to toggle source
@!visibility private
# File lib/ruby_terraform/commands/providers_schema.rb, line 38 def parameter_overrides(_parameters) # Terraform 0.15 - at this time, the -json flag is a required option. { json: true } end
subcommands()
click to toggle source
@!visibility private
# File lib/ruby_terraform/commands/providers_schema.rb, line 28 def subcommands %w[providers schema] end