Sha256: af2b18cd8bea0153f4c1ac11e7d1c0e95b281d6b90717bd533d98c243b7a81d5

Contents?: true

Size: 609 Bytes

Versions: 29

Compression:

Stored size: 609 Bytes

Contents

module Lono
  class AbstractBase
    extend Memoist
    include Lono::Blueprint::Root

    def initialize(options={})
      reinitialize(options)
    end

    # Hack so that we can use include Thor::Base
    def reinitialize(options)
      @options = options
      Lono::ProjectChecker.check
      @stack, @blueprint, @template, @param = Conventions.new(options).values

      return if options[:source]
      set_blueprint_root(@blueprint)
      Lono::ProjectChecker.empty_templates
    end

    def template_path
      "#{Lono.config.output_path}/#{@blueprint}/templates/#{@template}.yml"
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
lono-7.5.2 lib/lono/abstract_base.rb
lono-7.5.1 lib/lono/abstract_base.rb
lono-7.5.0 lib/lono/abstract_base.rb
lono-7.4.11 lib/lono/abstract_base.rb
lono-7.4.10 lib/lono/abstract_base.rb
lono-7.4.9 lib/lono/abstract_base.rb
lono-7.4.8 lib/lono/abstract_base.rb
lono-7.4.7 lib/lono/abstract_base.rb
lono-7.4.6 lib/lono/abstract_base.rb
lono-7.4.5 lib/lono/abstract_base.rb
lono-7.4.4 lib/lono/abstract_base.rb
lono-7.4.3 lib/lono/abstract_base.rb
lono-7.4.2 lib/lono/abstract_base.rb
lono-7.4.1 lib/lono/abstract_base.rb
lono-7.4.0 lib/lono/abstract_base.rb
lono-7.3.2 lib/lono/abstract_base.rb
lono-7.3.1 lib/lono/abstract_base.rb
lono-7.3.0 lib/lono/abstract_base.rb
lono-7.2.3 lib/lono/abstract_base.rb
lono-7.2.2 lib/lono/abstract_base.rb