Sha256: dac1ba0da1fc2c4de35d7946b4ce60c6759b5d781090e58141370066d34ec27e

Contents?: true

Size: 436 Bytes

Versions: 12

Compression:

Stored size: 436 Bytes

Contents

# frozen_string_literal: true

module RailsTemplate18f
  module Generators
    module PipelineOptions
      extend ActiveSupport::Concern
      include CloudGovOptions

      included do
        class_option :terraform, type: :boolean, desc: "Generate actions for planning and applying terraform"
      end

      def terraform?
        options[:terraform].nil? ? terraform_dir_exists? : options[:terraform]
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rails_template_18f-1.2.0 lib/rails_template18f/generators/pipeline_options.rb
rails_template_18f-1.1.0 lib/rails_template18f/generators/pipeline_options.rb
rails_template_18f-1.0.0 lib/rails_template18f/generators/pipeline_options.rb
rails_template_18f-0.6.0 lib/rails_template18f/generators/pipeline_options.rb
rails_template_18f-0.5.3 lib/rails_template18f/generators/pipeline_options.rb
rails_template_18f-0.5.2 lib/rails_template18f/generators/pipeline_options.rb
rails_template_18f-0.5.1 lib/rails_template18f/generators/pipeline_options.rb
rails_template_18f-0.5.0 lib/rails_template18f/generators/pipeline_options.rb
rails_template_18f-0.4.1 lib/rails_template18f/generators/pipeline_options.rb
rails_template_18f-0.4.0 lib/rails_template18f/generators/pipeline_options.rb
rails_template_18f-0.3.0 lib/rails_template18f/generators/pipeline_options.rb
rails_template_18f-0.2.0 lib/rails_template18f/generators/pipeline_options.rb