Class: PointRb::Api
- Inherits:
-
Object
- Object
- PointRb::Api
- Defined in:
- lib/pointrb/api.rb
Class Method Summary collapse
Class Method Details
.create_layout(env) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/pointrb/api.rb', line 3 def self.create_layout(env) stack = Middleware::Builder.new do use Actions::ErrorHandlerCommandline use Actions::CreateProjectWrapper use Actions::CheckProjectPath use Actions::DetermineLayoutDirectory use Actions::RetrieveLayoutFiles use Actions::RetrieveParsedLayout use Actions::CreateLayout end stack.call(env) end |
.initialize_pointrb(env) ⇒ Object
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/pointrb/api.rb', line 17 def self.initialize_pointrb(env) stack = Middleware::Builder.new do use Actions::ErrorHandlerCommandline use Actions::DetermineLayoutDirectory use Actions::CheckIfPointRbHasAlreadyBeenInitialized use Actions::InitializePointRb end stack.call(env) end |
.show_version ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/pointrb/api.rb', line 28 def self.show_version stack = Middleware::Builder.new do use Actions::ShowPointRbVersion end stack.call end |