Sha256: 476d31462506075747445356adc0650f69bdf52a76208e2754a95a2e958a025a

Contents?: true

Size: 759 Bytes

Versions: 3

Compression:

Stored size: 759 Bytes

Contents

class EchoBaseGenerator < Rails::Generators::NamedBase
  source_root File.expand_path('../templates', __FILE__)
  argument :app_name, :type => :string, :default => "Echo Base"
  def config
    directory "config"
  end

  def migrations
    directory "db"
  end

  def gems
    copy_file "Gemfile"
    copy_file "Gemfile.lock"
  end

  def capistrano
    copy_file "Capfile"
  end

  def public_folder
    directory "public"
  end

  def rspec
    directory "spec"
    directory "autotest"
    copy_file ".infinity_test"
    copy_file ".rspec"
  end

  def cucumber
    directory "features"
  end

  def rvmrc
    copy_file ".rvmrc"
  end

  def users
    directory "app"
    template "application.html.erb", "app/views/layouts/application.html.erb"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
echo_base-0.0.4 lib/generators/echo_base/echo_base_generator.rb
echo_base-0.0.3 lib/generators/echo_base/echo_base_generator.rb
echo_base-0.0.2 lib/generators/echo_base/echo_base_generator.rb