Sha256: a346737c62d4010b62dccd44fe0dd08b744b3d1876c2b1ebf704df53a081f006

Contents?: true

Size: 807 Bytes

Versions: 17

Compression:

Stored size: 807 Bytes

Contents

class AppBuilder < Rails::AppBuilder
  include Thor::Actions
  include Thor::Shell

  RUBY_VERSION   = "2.1.0"
  LALALA_VERSION = "4.1.0.dev"

  def gemfile
    create_file 'Gemfile', <<-DOC

source 'https://rubygems.org'

ruby "#{RUBY_VERSION}"

gem 'lalala',             "~> #{LALALA_VERSION}"
gem 'lalala-development', "~> #{LALALA_VERSION}", groups: [:development]
gem 'lalala-assets',      "~> #{LALALA_VERSION}", groups: [:development, :assets]
gem 'lalala-test',        "~> #{LALALA_VERSION}", groups: [:test]

DOC
  end

  def ruby_version
    create_file ".ruby-version", RUBY_VERSION
  end

  def leftovers
    ruby_version
  end

end

class Rails::Generators::AppGenerator

  alias_method :lng_run_bundle, :run_bundle

  def run_bundle
    lng_run_bundle
    generate "lalala:install"
  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
lalala-4.1.0.dev.367 lib/lalala/utils/install_template.rb
lalala-4.1.0.dev.360 lib/lalala/utils/install_template.rb
lalala-4.1.0.dev.359 lib/lalala/utils/install_template.rb
lalala-4.1.0.dev.358 lib/lalala/utils/install_template.rb
lalala-4.1.0.dev.356 lib/lalala/utils/install_template.rb
lalala-4.1.0.dev.355 lib/lalala/utils/install_template.rb
lalala-4.1.0.dev.342 lib/lalala/utils/install_template.rb
lalala-4.1.0.dev.341 lib/lalala/utils/install_template.rb
lalala-4.1.0.dev.340 lib/lalala/utils/install_template.rb
lalala-4.1.0.dev.334 lib/lalala/utils/install_template.rb
lalala-4.1.0.dev.332 lib/lalala/utils/install_template.rb
lalala-4.1.0.dev.324 lib/lalala/utils/install_template.rb
lalala-4.1.0.dev.322 lib/lalala/utils/install_template.rb
lalala-4.1.0.dev.321 lib/lalala/utils/install_template.rb
lalala-4.1.0.dev.318 lib/lalala/utils/install_template.rb
lalala-4.1.0.dev.316 lib/lalala/utils/install_template.rb
lalala-4.1.0.dev.314 lib/lalala/utils/install_template.rb