lib/vindetta/cli.rb in vindetta-0.16.0 vs lib/vindetta/cli.rb in vindetta-0.17.0
- old
+ new
@@ -28,11 +28,11 @@
c.action do |_global, _options, args|
vin = args.first
exit_now!(I18n.t("required"), 1) if vin.nil?
- puts Vindetta::Validator.run(vin)
+ puts Vindetta::Validator.vin(vin)
end
end
desc "Decodes a VIN"
@@ -40,10 +40,10 @@
c.action do |_global, _options, args|
vin = args.first
exit_now!(I18n.t("required"), 1) if vin.nil?
- puts Vindetta::Decoder.decode_vin(vin).to_json
+ puts Vindetta::Decoder.vin(vin).to_json
end
end
desc "Generates a random VIN"