Sha256: cac97b3df5fd6cec1c037421ef2accd9adfa9d21208e38781b99db5cc32148c3
Contents?: true
Size: 688 Bytes
Versions: 21
Compression:
Stored size: 688 Bytes
Contents
require 'active_support' require 'active_support/core_ext' require 'thor' require 'eucalypt/helpers' require 'eucalypt/generate/namespaces/generate/cli/generate' module Eucalypt class Security < Thor module Helpers include Eucalypt::Helpers include Eucalypt::Helpers::Messages using Colorize def create_config_file(type, directory) config_relative = File.join 'config', "#{type}.rb" config_file = File.join(directory, config_relative) Out.warning "#{type.to_s.capitalize} config file #{config_relative.colorize(:bold)} already exists." if File.file? config_file template "#{type}.tt", config_file end end end end
Version data entries
21 entries across 21 versions & 1 rubygems