Class: Voicemaker::Commands::Base
- Inherits:
-
MisterBin::Command
- Object
- MisterBin::Command
- Voicemaker::Commands::Base
show all
- Defined in:
- lib/voicemaker/commands/base.rb
Class Method Summary
collapse
Class Method Details
.api_environment ⇒ Object
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# File 'lib/voicemaker/commands/base.rb', line 6
def api_environment
environment "VOICEMAKER_API_KEY", "Your Voicemaker API key [required]"
environment "VOICEMAKER_API_HOST", "Override the API host URL"
environment "VOICEMAKER_CACHE_DIR", "API cache diredctory [default: cache]"
environment "VOICEMAKER_CACHE_LIFE", <<~EOF
API cache life. These formats are supported:
off - No cache
20s - 20 seconds
10m - 10 minutes
10h - 10 hours
10d - 10 days
EOF
end
|