class Yawast::Commands::Utils

Public Class Methods

extract_uri(args) click to toggle source
# File lib/commands/utils.rb, line 6
def self.extract_uri(args)
  raise ArgumentError, 'You must specify a URL.' if args.empty?

  # this might be a bad assumption
  url = args[0]

  Yawast::Shared::Uri.extract_uri url
end