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.2 lib/terraspace/cli/new/source/plugin.rb
terraspace-0.6.1 lib/terraspace/cli/new/source/plugin.rb
terraspace-0.6.0 lib/terraspace/cli/new/source/plugin.rb
terraspace-0.5.12 lib/terraspace/cli/new/source/plugin.rb
terraspace-0.5.11 lib/terraspace/cli/new/source/plugin.rb
terraspace-0.5.10 lib/terraspace/cli/new/source/plugin.rb
terraspace-0.5.9 lib/terraspace/cli/new/source/plugin.rb
terraspace-0.5.8 lib/terraspace/cli/new/source/plugin.rb
terraspace-0.5.7 lib/terraspace/cli/new/source/plugin.rb
terraspace-0.5.6 lib/terraspace/cli/new/source/plugin.rb
terraspace-0.5.5 lib/terraspace/cli/new/source/plugin.rb
terraspace-0.5.4 lib/terraspace/cli/new/source/plugin.rb
terraspace-0.5.3 lib/terraspace/cli/new/source/plugin.rb
terraspace-0.5.2 lib/terraspace/cli/new/source/plugin.rb
terraspace-0.5.1 lib/terraspace/cli/new/source/plugin.rb
terraspace-0.5.0 lib/terraspace/cli/new/source/plugin.rb
terraspace-0.4.4 lib/terraspace/cli/new/source/plugin.rb
terraspace-0.4.3 lib/terraspace/cli/new/source/plugin.rb
terraspace-0.4.2 lib/terraspace/cli/new/source/plugin.rb
terraspace-0.4.1 lib/terraspace/cli/new/source/plugin.rb