Sha256: 575821bd95ef0575eb9312dbce1d6505cc9898645f60cb1bab85256a869a768e

Contents?: true

Size: 643 Bytes

Versions: 12

Compression:

Stored size: 643 Bytes

Contents

require 'xing'
require 'architecture/dsl'

module Xing::CLI::Templaters
  class Templater

    include Architecture

    def initialize(target_name, context, guard = false)
      @target_name = target_name
      @context = context
      @guard = guard
    end

    attr_reader :target_name, :context, :guard

    def template
      if !guard
        architecture source: File.expand_path('../../../../default_configuration/templates/', __FILE__),
          destination: target_name  do |arc|
          template_files(arc)
        end
      end
    end
  end

  Dir[File.dirname(__FILE__) + '/templaters/*.rb'].each { |file| require file }
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
xing-framework-1.0.0.pre.beta.1 lib/xing/cli/templaters.rb
xing-framework-1.0.0.pre.beta lib/xing/cli/templaters.rb
xing-framework-1.0.0.pre.alpha lib/xing/cli/templaters.rb
xing-framework-0.3.2 lib/xing/cli/templaters.rb
xing-framework-0.3.1 lib/xing/cli/templaters.rb
xing-framework-0.3.0 lib/xing/cli/templaters.rb
xing-framework-0.2.9 lib/xing/cli/templaters.rb
xing-framework-0.2.9.beta1 lib/xing/cli/templaters.rb
xing-framework-0.2.8 lib/xing/cli/templaters.rb
xing-framework-0.2.8.beta1 lib/xing/cli/templaters.rb
xing-framework-0.2.7 lib/xing/cli/templaters.rb
xing-framework-0.2.7.pre.beta1 lib/xing/cli/templaters.rb