Class: PointRb::Actions::CreateProjectWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/pointrb/actions/create_project_wrapper.rb

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ CreateProjectWrapper

Returns a new instance of CreateProjectWrapper.



4
5
6
# File 'lib/pointrb/actions/create_project_wrapper.rb', line 4

def initialize(app)
  @app = app
end

Instance Method Details

#call(env) ⇒ Object



8
9
10
11
12
# File 'lib/pointrb/actions/create_project_wrapper.rb', line 8

def call(env)
  env.project = PointRb::Project.new(env.project_name)

  @app.call(env)
end