Sha256: 13d273aa5fda03fbebd9aede138c58c945e8023fc7425d3a55906de63bbd3372

Contents?: true

Size: 411 Bytes

Versions: 34

Compression:

Stored size: 411 Bytes

Contents

class EnjuBiblio::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_biblio")
    return if file == 'fixture'
    append_to_file("config/schedule.rb", File.open(File.expand_path('../templates', __FILE__) + '/config/schedule.rb').read)
  end
end

Version data entries

34 entries across 33 versions & 2 rubygems

Version Path
enju_biblio-0.3.7 lib/generators/enju_biblio/setup/setup_generator.rb
enju_biblio-0.3.6 lib/generators/enju_biblio/setup/setup_generator.rb
enju_biblio-0.4.0.beta.2 lib/generators/enju_biblio/setup/setup_generator.rb
enju_biblio-0.4.0.beta.1 lib/generators/enju_biblio/setup/setup_generator.rb
enju_biblio-0.3.5 lib/generators/enju_biblio/setup/setup_generator.rb
enju_biblio-0.3.4 lib/generators/enju_biblio/setup/setup_generator.rb
enju_biblio-0.3.3 lib/generators/enju_biblio/setup/setup_generator.rb
enju_biblio-0.3.2 lib/generators/enju_biblio/setup/setup_generator.rb
enju_biblio-0.3.1 lib/generators/enju_biblio/setup/setup_generator.rb
enju_biblio-0.3.0 lib/generators/enju_biblio/setup/setup_generator.rb
enju_biblio-0.3.0.rc.1 lib/generators/enju_biblio/setup/setup_generator.rb
enju_biblio-0.3.0.beta.2 lib/generators/enju_biblio/setup/setup_generator.rb
enju_biblio-0.2.5 lib/generators/enju_biblio/setup/setup_generator.rb
enju_biblio-0.2.4 lib/generators/enju_biblio/setup/setup_generator.rb
enju_biblio-0.2.3 lib/generators/enju_biblio/setup/setup_generator.rb
enju_biblio-0.2.2 lib/generators/enju_biblio/setup/setup_generator.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_biblio-0.2.1/lib/generators/enju_biblio/setup/setup_generator.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_biblio-0.2.0/lib/generators/enju_biblio/setup/setup_generator.rb
enju_biblio-0.2.1 lib/generators/enju_biblio/setup/setup_generator.rb
enju_biblio-0.2.0 lib/generators/enju_biblio/setup/setup_generator.rb