Sha256: d0f25c6755df097aba577f1e96ace5ab5cffd8ee67049f0799ec2e5587d41979
Contents?: true
Size: 906 Bytes
Versions: 7
Compression:
Stored size: 906 Bytes
Contents
module AlephExecutables class SetupMinimal def initialize(options) @options = options @banner = options[:banner] end def execute! options = @options.select{ |k,v| k == :config_path} host = @options[:redshift_host] db = @options[:redshift_db] port = @options[:redshift_port] user = @options[:redshift_user] password = @options[:redshift_password] Utils.fail "Missing Redshift Host", @banner unless present? host Utils.fail "Missing Redshift Db", @banner unless present? db Utils.fail "Missing Redshift Port", @banner unless present? port Utils.fail "Missing Redshift User", @banner unless present? user Utils.fail "Missing Redshift Password", @banner unless present? password Playground.setup host, db, port, user, password, options end def present?(v) v && !v.to_s.empty? end end end
Version data entries
7 entries across 7 versions & 1 rubygems