Class: Voicemaker::Commands::Base

Inherits:
MisterBin::Command
  • Object
show all
Defined in:
lib/voicemaker/commands/base.rb

Direct Known Subclasses

NewCommand, ProjectCommand, TTSCommand, VoicesCommand

Class Method Summary collapse

Class Method Details

.api_environmentObject



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", "    API cache life. These formats are supported:\n    off - No cache\n    20s - 20 seconds\n    10m - 10 minutes\n    10h - 10 hours\n    10d - 10 days\n  EOF\nend\n"