Sha256: dbf1a1f3cc12b93e1ae6c6c723676d1a3a21d7c2d3a70410d8ecbdd5960e9045
Contents?: true
Size: 371 Bytes
Versions: 3
Compression:
Stored size: 371 Bytes
Contents
module Bushido class Utils class << self def while_authorized(&block) if Bushido::User.authentication_token.nil? or Bushido::User.email.nil? puts "Please authorized before attempting that command. You can run `bushido reauth` to update your credentials." exit 1 else yield end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bushido-0.0.3 | lib/bushido/utils.rb |
bushido-0.0.2 | lib/bushido/utils.rb |
bushido-0.0.1 | lib/bushido/utils.rb |