lib/faastruby/cli/credentials.rb in faastruby-0.2.2 vs lib/faastruby/cli/credentials.rb in faastruby-0.2.3
- old
+ new
@@ -43,9 +43,10 @@
end
end
def self.load_from_env(workspace_name)
return nil unless ENV['FAASTRUBY_API_KEY'] && ENV['FAASTRUBY_API_SECRET']
+ puts "#{"WARNING:".red} Using credentials from env vars FAASTRUBY_API_KEY and FAASTRUBY_API_SECRET"
{workspace_name => {'api_key' => ENV['FAASTRUBY_API_KEY'], 'api_secret' => ENV['FAASTRUBY_API_SECRET']}}
end
end
end
\ No newline at end of file