Sha256: 097d7b3b3320dd631c172be5d3bded6e36ebcfa638e19ebac37819cfbc78e1aa

Contents?: true

Size: 894 Bytes

Versions: 3

Compression:

Stored size: 894 Bytes

Contents

module PointRb
  class Api
    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

    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

    def self.show_version
      stack = Middleware::Builder.new do
        use Actions::ShowPointRbVersion
      end

      stack.call
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pointrb-0.1.2 lib/pointrb/api.rb
pointrb-0.1.1 lib/pointrb/api.rb
pointrb-0.1.0 lib/pointrb/api.rb