module Beaker::DSL::PEClientTools::ConfigFileHelper
Public Instance Methods
write_client_tool_config_on(host, config_level, tool, contents)
click to toggle source
Helper method to write config files for pe-client-tools @param [Beaker::Host] host The beaker host that gets the config file @param [String] config_level 'user' or 'global' @param [String] tool 'access', 'code', 'db', 'query', 'orchestrator', 'job', 'app' @param [String] contents The contents of the config file
# File lib/beaker-pe/pe-client-tools/config_file_helper.rb, line 13 def write_client_tool_config_on(host, config_level, tool, contents) # TODO take a hash and parse file or take literal string file = "#{Private.config_path(host, config_level)}/#{Private.file_name(tool)}" create_remote_file(host, file, contents) end