Sha256: 2b8b8a058020193f7279569134f8f8030bf86a94873e0edacdd52f9e6ce73d57

Contents?: true

Size: 693 Bytes

Versions: 56

Compression:

Stored size: 693 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"
        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

56 entries across 56 versions & 1 rubygems

Version Path
terraspace-0.6.23 lib/terraspace/cli/new/source/plugin.rb
terraspace-0.6.22 lib/terraspace/cli/new/source/plugin.rb
terraspace-0.6.21 lib/terraspace/cli/new/source/plugin.rb
terraspace-0.6.20 lib/terraspace/cli/new/source/plugin.rb
terraspace-0.6.19 lib/terraspace/cli/new/source/plugin.rb
terraspace-0.6.18 lib/terraspace/cli/new/source/plugin.rb
terraspace-0.6.17 lib/terraspace/cli/new/source/plugin.rb
terraspace-0.6.16 lib/terraspace/cli/new/source/plugin.rb
terraspace-0.6.15 lib/terraspace/cli/new/source/plugin.rb
terraspace-0.6.13 lib/terraspace/cli/new/source/plugin.rb
terraspace-0.6.12 lib/terraspace/cli/new/source/plugin.rb
terraspace-0.6.11 lib/terraspace/cli/new/source/plugin.rb
terraspace-0.6.10 lib/terraspace/cli/new/source/plugin.rb
terraspace-0.6.9 lib/terraspace/cli/new/source/plugin.rb
terraspace-0.6.8 lib/terraspace/cli/new/source/plugin.rb
terraspace-0.6.7 lib/terraspace/cli/new/source/plugin.rb
terraspace-0.6.6 lib/terraspace/cli/new/source/plugin.rb
terraspace-0.6.5 lib/terraspace/cli/new/source/plugin.rb
terraspace-0.6.4 lib/terraspace/cli/new/source/plugin.rb
terraspace-0.6.3 lib/terraspace/cli/new/source/plugin.rb