Sha256: d7475220235e0e48db1791b12901e470989a9a31f73089e8d512d12ea5aa7621

Contents?: true

Size: 405 Bytes

Versions: 6

Compression:

Stored size: 405 Bytes

Contents

class LocomotiveGenerator < Rails::Generators::Base
  class_option :update, :type => :boolean, :default => false,
                        :desc => "Just update public files, do not create seed"

  def self.source_root
    @_locomotive_source_root ||= File.dirname(__FILE__)
  end

  def copy_public_files
    directory "../../public", "public", :recursive => true
    exit(0) if options.update?
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
locomotive_cms-0.0.2 lib/generators/locomotive_generator.rb
locomotive_cms-0.0.1.4 lib/generators/locomotive_generator.rb
locomotive_cms-0.0.1.3 lib/generators/locomotive_generator.rb
locomotive_cms-0.0.1.2 lib/generators/locomotive_generator.rb
locomotive_cms-0.0.1.1 lib/generators/locomotive_generator.rb
locomotive_cms-0.0.1 lib/generators/locomotive_generator.rb