Sha256: 49ab4f70f1c353b6a1dccab1e5924c163a445c6fe9b573e437072d4e07cb86e8
Contents?: true
Size: 1.07 KB
Versions: 9
Compression:
Stored size: 1.07 KB
Contents
require 'rake/tasklib' module Ruby module Terraform module Tasks class BaseTask < ::Rake::TaskLib # name of configuration attr_accessor :configuration_name # name of task attr_accessor :task_name # the working dir of `terraform` command attr_accessor :dir # the description of the task attr_accessor :description # should the terraform command be shown on the console. Defaults to `false`. attr_accessor :show_command # should the terraform output be shown on the console. Defaults to `false`. attr_accessor :show_output # the task dependencies attr_accessor :deps def initialize(configuration_name, task_name = nil) @configuration_name = configuration_name @task_name = task_name @deps = [] if @task_name.is_a?(Hash) @deps = @task_name.values.first @task_name = @task_name.keys.first end yield self if block_given? define end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems