Module: TerraspacePluginScaleway

Extended by:
TerraspacePluginScaleway
Included in:
TerraspacePluginScaleway
Defined in:
lib/terraspace_plugin_scaleway.rb,
lib/terraspace_plugin_scaleway/logger.rb,
lib/terraspace_plugin_scaleway/clients.rb,
lib/terraspace_plugin_scaleway/version.rb,
lib/terraspace_plugin_scaleway/autoloader.rb

Defined Under Namespace

Modules: Clients, Interfaces, Logging Classes: Autoloader, Error

Constant Summary collapse

VERSION =
"0.1.1"
@@logger =
nil

Instance Method Summary collapse

Instance Method Details

#configObject



21
22
23
# File 'lib/terraspace_plugin_scaleway.rb', line 21

def config
  Interfaces::Config.instance.config
end

#configure(&block) ⇒ Object

Friendlier method for config/plugins/scaleway.rb. Example:

TerraspacePluginScaleway.configure do |config|
  config.resource.property = "value"
end


17
18
19
# File 'lib/terraspace_plugin_scaleway.rb', line 17

def configure(&block)
  Interfaces::Config.instance.configure(&block)
end

#loggerObject



26
27
28
# File 'lib/terraspace_plugin_scaleway.rb', line 26

def logger
  @@logger ||= Terraspace.logger
end

#logger=(v) ⇒ Object



30
31
32
# File 'lib/terraspace_plugin_scaleway.rb', line 30

def logger=(v)
  @@logger = v
end