Sha256: 339455a008e8217af8f4b46c3d959554118f139925d298fc675808b52e4a2f9d

Contents?: true

Size: 573 Bytes

Versions: 8

Compression:

Stored size: 573 Bytes

Contents

require 'thor/group'
require 'active_support'
require 'active_support/core_ext'

module Locomotive
  module Builder
    module Generators
      module Site

        class Base < Thor::Group

          include Thor::Actions

          argument :name
          argument :target_path

          def self.source_root
            File.join(File.dirname(__FILE__), '..', '..', '..', '..', '..', 'generators', self.name.demodulize.underscore)
          end

          def destination
            File.join(target_path, name)
          end

        end

      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
locomotivecms_builder-1.0.0.alpha8 lib/locomotive/builder/generators/site/base.rb
locomotivecms_builder-1.0.0.alpha7 lib/locomotive/builder/generators/site/base.rb
locomotivecms_builder-1.0.0.alpha6 lib/locomotive/builder/generators/site/base.rb
locomotivecms_builder-1.0.0.alpha5 lib/locomotive/builder/generators/site/base.rb
locomotivecms_builder-1.0.0.alpha4 lib/locomotive/builder/generators/site/base.rb
locomotivecms_builder-1.0.0.alpha3 lib/locomotive/builder/generators/site/base.rb
locomotivecms_builder-1.0.0.alpha2 lib/locomotive/builder/generators/site/base.rb
locomotivecms_builder-1.0.0.alpha1 lib/locomotive/builder/generators/site/base.rb