Sha256: 42586124f4b12e4eb745efdd064d8b04ed0444a9b6476f0636492d0a3b0fae0f

Contents?: true

Size: 309 Bytes

Versions: 3

Compression:

Stored size: 309 Bytes

Contents

module PointRb
  module Actions
    class CreateLayout
      def initialize(app)
        @app = app
      end

      def call(env)
        env.layout.create
        puts "[Information] Layout '#{env.layout.name}' for project '#{env.project.name}' created."

        @app.call(env)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pointrb-0.1.2 lib/pointrb/actions/create_layout.rb
pointrb-0.1.1 lib/pointrb/actions/create_layout.rb
pointrb-0.1.0 lib/pointrb/actions/create_layout.rb