class Snap::CLI

Public Class Methods

run(argv) click to toggle source
# File lib/snap/cli.rb, line 16
def self.run(argv)
  CLI.start
end

Public Instance Methods

configure(api_key=nil) click to toggle source
# File lib/snap/cli.rb, line 8
def configure(api_key=nil)
  while api_key == nil || api_key.chomp.empty?
    api_key = ask("What is your api key (will not echo): ", :echo => false)
    puts
  end
  Snap.configure(api_key)
end