Sha256: 59568196a1a566a49930a20aae9b3cde9abefb2f45030f3bb8de9322da3ac475

Contents?: true

Size: 812 Bytes

Versions: 42

Compression:

Stored size: 812 Bytes

Contents

module Locomotive
  module Wagon
    module Generators
      module Site

        class Blank < Base

          may_use_haml

          def choose_haml_over_html
            if haml?
              remove_file File.join(self.destination, 'app/views/pages/index.liquid')
              remove_file File.join(self.destination, 'app/views/pages/404.liquid')
            else
              remove_file File.join(self.destination, 'app/views/pages/index.liquid.haml')
              remove_file File.join(self.destination, 'app/views/pages/404.liquid.haml')
            end
          end

          def bundle_install
            super
          end

        end

        Locomotive::Wagon::Generators::Site.register(:blank, Blank, %{
          A blank site with the minimal files.
        })
      end
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
locomotivecms_wagon-2.4.1 lib/locomotive/wagon/generators/site/blank.rb
locomotivecms_wagon-2.4.0 lib/locomotive/wagon/generators/site/blank.rb
locomotivecms_wagon-2.4.0.rc2 lib/locomotive/wagon/generators/site/blank.rb
locomotivecms_wagon-2.4.0.rc1 lib/locomotive/wagon/generators/site/blank.rb
locomotivecms_wagon-2.3.0 lib/locomotive/wagon/generators/site/blank.rb
locomotivecms_wagon-2.3.0.rc1 lib/locomotive/wagon/generators/site/blank.rb
locomotivecms_wagon-2.2.0 lib/locomotive/wagon/generators/site/blank.rb
locomotivecms_wagon-2.2.0.rc3 lib/locomotive/wagon/generators/site/blank.rb
locomotivecms_wagon-2.2.0.rc2 lib/locomotive/wagon/generators/site/blank.rb
locomotivecms_wagon-2.2.0.rc1 lib/locomotive/wagon/generators/site/blank.rb
locomotivecms_wagon-2.2.0.beta1 lib/locomotive/wagon/generators/site/blank.rb
locomotivecms_wagon-2.1.1 lib/locomotive/wagon/generators/site/blank.rb
locomotivecms_wagon-2.1.0 lib/locomotive/wagon/generators/site/blank.rb
locomotivecms_wagon-2.1.0.rc5 lib/locomotive/wagon/generators/site/blank.rb
locomotivecms_wagon-2.1.0.rc4 lib/locomotive/wagon/generators/site/blank.rb
locomotivecms_wagon-2.1.0.rc3 lib/locomotive/wagon/generators/site/blank.rb
locomotivecms_wagon-2.0.1 lib/locomotive/wagon/generators/site/blank.rb
locomotivecms_wagon-2.0.0 lib/locomotive/wagon/generators/site/blank.rb
locomotivecms_wagon-2.0.0.rc8 lib/locomotive/wagon/generators/site/blank.rb
locomotivecms_wagon-2.0.0.rc7 lib/locomotive/wagon/generators/site/blank.rb