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

Version Path
eucalypt-0.8.0 lib/eucalypt/security/helpers.rb
eucalypt-0.7.2 lib/eucalypt/security/helpers.rb
eucalypt-0.7.1 lib/eucalypt/security/helpers.rb
eucalypt-0.7.0 lib/eucalypt/security/helpers.rb
eucalypt-0.6.2 lib/eucalypt/security/helpers.rb
eucalypt-0.6.1 lib/eucalypt/security/helpers.rb
eucalypt-0.6.0 lib/eucalypt/security/helpers.rb
eucalypt-0.5.4 lib/eucalypt/security/helpers.rb
eucalypt-0.5.3 lib/eucalypt/security/helpers.rb
eucalypt-0.5.2 lib/eucalypt/security/helpers.rb
eucalypt-0.5.1 lib/eucalypt/security/helpers.rb
eucalypt-0.5.0 lib/eucalypt/security/helpers.rb
eucalypt-0.4.2 lib/eucalypt/security/helpers.rb
eucalypt-0.4.1 lib/eucalypt/security/helpers.rb
eucalypt-0.4.0 lib/eucalypt/security/helpers.rb
eucalypt-0.3.5 lib/eucalypt/security/helpers.rb
eucalypt-0.3.4 lib/eucalypt/security/helpers.rb
eucalypt-0.3.3 lib/eucalypt/security/helpers.rb
eucalypt-0.3.2 lib/eucalypt/security/helpers.rb
eucalypt-0.3.1 lib/eucalypt/security/helpers.rb