Sha256: a7285602b8af9003f7a853355c0e0457770cc865ebba499e524d18891ab1637b
Contents?: true
Size: 316 Bytes
Versions: 3
Compression:
Stored size: 316 Bytes
Contents
module PointRb module Actions class CheckProjectPath def initialize(app) @app = app end def call(env) raise PointRb::Exceptions::ProjectPathExists, "Directory '#{env.project.name}' exists." if File.exists? env.project.path @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/check_project_path.rb |
pointrb-0.1.1 | lib/pointrb/actions/check_project_path.rb |
pointrb-0.1.0 | lib/pointrb/actions/check_project_path.rb |