Class: Flynn::Recipes::Basic

Inherits:
RvmBase
  • Object
show all
Defined in:
lib/flynn/recipes/basic.rb

Instance Method Summary collapse

Methods inherited from RvmBase

#initialize

Methods included from Helpers

#create_file, #executable_path, #inside, #run

Constructor Details

This class inherits a constructor from Flynn::Recipes::RvmBase

Instance Method Details

#create(app_name, options = {}) ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'lib/flynn/recipes/basic.rb', line 4

def create(app_name, options={})
  require 'fileutils'
  puts "Creating #{app_name}"
  FileUtils.mkdir(app_name)
  inside app_name do
    run("bundle init")
  end
  create_project_rvmrc(app_name)
end