Class: Flynn::Recipes::Sinatra

Inherits:
RvmBase
  • Object
show all
Defined in:
lib/flynn/recipes/sinatra.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



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/flynn/recipes/sinatra.rb', line 6

def create(app_name, options=[])
  @app_name = app_name
  RVM.gemset_create app_name
  RVM.gemset_use! app_name
  puts "Creating #{app_name}"
  FileUtils.mkdir(app_name)
  create_gemfile
  create_config_ru
  create_app_rb
  create_standard_directories
  create_project_rvmrc(app_name)

  inside(@app_name) do
    run("bundle install")
  end
end