Sha256: 729eb953afa4f8981f496a8b31e8a0c6c45407ac5ef27dc54d5e3cf3a5ebe5ac
Contents?: true
Size: 714 Bytes
Versions: 5
Compression:
Stored size: 714 Bytes
Contents
module Tay module CLI class Root < ::Thor desc 'validate', 'Validate the current extension' method_option 'tayfile', :type => :string, :banner => 'Use the specified tayfile instead of Tayfile' method_option 'build-directory', :type => :string, :default => 'build', :aliases => '-b', :banner => 'The directory containing the built extension' def validate validator = SpecificationValidator.new(spec, build_dir) validator.on_message = lambda do |type, message| say(type.upcase + ": " + message, type == 'warn' ? :yellow : :red) end if validator.validate! say("All OK!", :green) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
tay-0.1.0 | lib/tay/cli/validate.rb |
tay-0.0.5 | lib/tay/cli/validate.rb |
tay-0.0.4 | lib/tay/cli/validate.rb |
tay-0.0.3 | lib/tay/cli/validate.rb |
tay-0.0.2 | lib/tay/cli/validate.rb |