Sha256: 563ec3b90145adbd80fa724cdec8b80d2793420cb1fcba10a2ba7cebcf328415
Contents?: true
Size: 1.06 KB
Versions: 8
Compression:
Stored size: 1.06 KB
Contents
# encoding: UTF-8 module Rivet class Client def run(client_type,options) AwsUtils.set_aws_credentials options.profile Rivet::Log.level options.log_level Rivet::Log.info "Using #{client_type} config path #{options.config_path}" unless Dir.exists?(options.config_path) Rivet::Utils.die "The #{client_type} config path does not exist" end config = Rivet::Utils.get_config( client_type, options.name, options.config_path) unless config Rivet::Utils.list_groups(options.config_path) Rivet::Utils.die "The #{options.name} #{client_type} definition doesn't exist" end config.validate config = ConfigProxy.new(config) Rivet::Log.info "#{options.name} #{client_type} definition" asset = Rivet.const_get(client_type.capitalize).new(config) asset.display if options.sync Rivet::Log.debug "syncing asset #{options.name}" asset.sync else Rivet::Log.info 'use the -s [--sync] flag to sync changes' end end end end
Version data entries
8 entries across 8 versions & 1 rubygems