Sha256: 86a927ad73ec08eef9d4715baf64117357de513f6153443798ccc91c2928bf08

Contents?: true

Size: 805 Bytes

Versions: 104

Compression:

Stored size: 805 Bytes

Contents

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

  RUBY_VERSION   = "2.0.0"
  LALALA_VERSION = "4.0.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

104 entries across 104 versions & 1 rubygems

Version Path
lalala-4.0.0.dev.258 lib/lalala/utils/install_template.rb
lalala-4.0.0.dev.256 lib/lalala/utils/install_template.rb
lalala-4.0.0.dev.255 lib/lalala/utils/install_template.rb
lalala-4.0.0.dev.254 lib/lalala/utils/install_template.rb
lalala-4.0.0.dev.249 lib/lalala/utils/install_template.rb
lalala-4.0.0.dev.246 lib/lalala/utils/install_template.rb
lalala-4.0.0.dev.244 lib/lalala/utils/install_template.rb
lalala-4.0.0.dev.243 lib/lalala/utils/install_template.rb
lalala-4.0.0.dev.242 lib/lalala/utils/install_template.rb
lalala-4.0.0.dev.240 lib/lalala/utils/install_template.rb
lalala-4.0.0.dev.239 lib/lalala/utils/install_template.rb
lalala-4.0.0.dev.236 lib/lalala/utils/install_template.rb
lalala-4.0.0.dev.231 lib/lalala/utils/install_template.rb
lalala-4.0.0.dev.229 lib/lalala/utils/install_template.rb
lalala-4.0.0.dev.227 lib/lalala/utils/install_template.rb
lalala-4.0.0.dev.224 lib/lalala/utils/install_template.rb
lalala-4.0.0.dev.219 lib/lalala/utils/install_template.rb
lalala-4.0.0.dev.218 lib/lalala/utils/install_template.rb
lalala-4.0.0.dev.217 lib/lalala/utils/install_template.rb
lalala-4.0.0.dev.216 lib/lalala/utils/install_template.rb