Sha256: 4a7bb50bf4cd069e22886c7a6a1eab50f86543499bc68a44ee6e3da0121800e4

Contents?: true

Size: 761 Bytes

Versions: 48

Compression:

Stored size: 761 Bytes

Contents

module Terraspace::CLI::New::Source
  class Plugin < Core
    # different interface than Source::Test
    #
    #     template: base, hcl, ruby
    #     type: module, project, stack
    #
    def set_source_paths(template, type)
      # project always uses the examples from the provider gem for configs
      # base always uses terraspace core templates
      # examples option always use examples from provider gems
      if (type == "project" || @options[:examples]) && template != "base" &&
         (@options[:plugin] != "none" && !@options[:plugin].nil?)
        set_plugin_gem_source(template, type)   # provider gems has examples
      else
        set_core_source(template, type)  # terraspace core has empty starter files
      end
    end
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
terraspace-2.1.5 lib/terraspace/cli/new/source/plugin.rb
terraspace-2.1.4 lib/terraspace/cli/new/source/plugin.rb
terraspace-2.1.3 lib/terraspace/cli/new/source/plugin.rb
terraspace-2.1.2 lib/terraspace/cli/new/source/plugin.rb
terraspace-2.1.1 lib/terraspace/cli/new/source/plugin.rb
terraspace-2.1.0 lib/terraspace/cli/new/source/plugin.rb
terraspace-2.0.3 lib/terraspace/cli/new/source/plugin.rb
terraspace-2.0.2 lib/terraspace/cli/new/source/plugin.rb
terraspace-2.0.1 lib/terraspace/cli/new/source/plugin.rb
terraspace-2.0.0 lib/terraspace/cli/new/source/plugin.rb
terraspace-1.1.7 lib/terraspace/cli/new/source/plugin.rb
terraspace-1.1.6 lib/terraspace/cli/new/source/plugin.rb
terraspace-1.1.5 lib/terraspace/cli/new/source/plugin.rb
terraspace-1.1.4 lib/terraspace/cli/new/source/plugin.rb
terraspace-1.1.3 lib/terraspace/cli/new/source/plugin.rb
terraspace-1.1.2 lib/terraspace/cli/new/source/plugin.rb
terraspace-1.1.1 lib/terraspace/cli/new/source/plugin.rb
terraspace-1.1.0 lib/terraspace/cli/new/source/plugin.rb
terraspace-1.0.6 lib/terraspace/cli/new/source/plugin.rb
terraspace-1.0.5 lib/terraspace/cli/new/source/plugin.rb