Sha256: 5d7d605d2c563b4e1356f6ea5daf481347f7c618a331c1b375bea4bdaf168a98
Contents?: true
Size: 728 Bytes
Versions: 1
Compression:
Stored size: 728 Bytes
Contents
require 'active_support/inflector' require 'colorize' require 'hashie/mash' module Foreplay class Config def self.check *args options = Hashie::Mash[args.first] # Explain what we're going to do environments = explanatory_text options.environment, 'environment' roles = explanatory_text options.role, 'role' servers = explanatory_text options.server, 'server' puts 'Checking configuration for %s, %s, %s' % [environments, roles, servers] 'Not finished' end private def self.explanatory_text(value, singular_word) value.nil? ? "all #{singular_word.pluralize}" : "#{value.dup.yellow} #{singular_word}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foreplay-0.0.1 | lib/foreplay/config.rb |