Sha256: f9592c85936c3cc7993e1376dd0d1585dbfc5ab8d1278bdcc9c716241c15f0c8

Contents?: true

Size: 218 Bytes

Versions: 18

Compression:

Stored size: 218 Bytes

Contents

# frozen_string_literal: true

module Superbot
  module Validations
    def validates_project_path(path)
      signal_usage_error "directory #{path} does not exist" unless Dir.exist? path

      path
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
superbot-0.5.3 lib/superbot/cli/validations.rb
superbot-0.5.2 lib/superbot/cli/validations.rb
superbot-0.5.1 lib/superbot/cli/validations.rb
superbot-0.5.0 lib/superbot/cli/validations.rb
superbot-0.4.9 lib/superbot/cli/validations.rb
superbot-0.4.8 lib/superbot/cli/validations.rb
superbot-0.4.7 lib/superbot/cli/validations.rb
superbot-0.4.6 lib/superbot/cli/validations.rb
superbot-0.4.5 lib/superbot/cli/validations.rb
superbot-0.4.4 lib/superbot/cli/validations.rb
superbot-0.4.3 lib/superbot/cli/validations.rb
superbot-0.4.2 lib/superbot/cli/validations.rb
superbot-0.4.1 lib/superbot/cli/validations.rb
superbot-0.4.0 lib/superbot/cli/validations.rb
superbot-0.3.7 lib/superbot/cli/validations.rb
superbot-0.3.6 lib/superbot/cli/validations.rb
superbot-0.3.5 lib/superbot/cli/validations.rb
superbot-0.3.4 lib/superbot/cli/validations.rb