Class: EnvSpec::CLI::Lint
Instance Method Summary collapse
Methods inherited from Command
banner, #build_parser, #configure, #default_opts, description, #help, #initialize, name, #parser, #run, summary
Constructor Details
This class inherits a constructor from EnvSpec::CLI::Command
Instance Method Details
#call(rest, _opts) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/envspec/cli/lint.rb', line 11 def call(rest, _opts) file = require_file(rest.shift) EnvSpec.parse_file(file) puts "✓ #{file} is valid" 0 end |