Module: StackFu::ApiHooks
- Included in:
- App, Commands::ConfigCommand, Commands::DeployCommand, Commands::DumpCommand, Commands::ListCommand, Commands::PublishCommand
- Defined in:
- lib/stackfu/api_hooks.rb
Defined Under Namespace
Classes: Deployment, Provider, Resource, Script, Server, Stack, User
Instance Method Summary collapse
Instance Method Details
#initialize_api(config) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/stackfu/api_hooks.rb', line 14 def initialize_api(config) [Server, User, Stack, Script, Provider, Deployment].each do |model_class| model_class.user = $config[:token] model_class.password = "X" model_class.site = StackFu::API end end |