Sha256: a4c90ee5cbacdd1fb9d2143709890fddc3fb46634c528d4a7800d41c6f74e584

Contents?: true

Size: 445 Bytes

Versions: 8

Compression:

Stored size: 445 Bytes

Contents

class EnjuLibrary::SetupGenerator < Rails::Generators::Base
  source_root File.expand_path('../templates', __FILE__)
  argument :file, :type => :string, :default => "all"

  def copy_setup_files
    directory("db/fixtures", "db/fixtures/enju_library")
    return if file == 'fixture'
    inject_into_file 'app/controllers/application_controller.rb',
      "  include EnjuLibrary::Controller\n", after: "include EnjuLeaf::Controller\n"
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
enju_library-0.2.0.beta.8 lib/generators/enju_library/setup/setup_generator.rb
enju_library-0.2.0.beta.7 lib/generators/enju_library/setup/setup_generator.rb
enju_library-0.2.0.beta.6 lib/generators/enju_library/setup/setup_generator.rb
enju_library-0.2.0.beta.5 lib/generators/enju_library/setup/setup_generator.rb
enju_library-0.2.0.beta.4 lib/generators/enju_library/setup/setup_generator.rb
enju_library-0.2.0.beta.3 lib/generators/enju_library/setup/setup_generator.rb
enju_library-0.2.0.beta.2 lib/generators/enju_library/setup/setup_generator.rb
enju_library-0.2.0.beta.1 lib/generators/enju_library/setup/setup_generator.rb