Sha256: df283818c6e179901845c2756d08335346b8d5af9c97bbaad662d1f70857fb41

Contents?: true

Size: 603 Bytes

Versions: 3

Compression:

Stored size: 603 Bytes

Contents

# frozen_string_literal: true

module Ikibana
  module Generators
    # This class is responsible for creating the initial files in your app folder
    class InstallGenerator < Rails::Generators::Base
      source_root File.expand_path("../../templates", __dir__)

      def create_directories
        empty_directory "app/ikibana"
        create_file "app/ikibana/.keep"
        empty_directory "spec/ikibana"
        create_file "spec/ikibana/.keep"
        template "nats.yaml.erb", "config/nats.yaml"
        template "configure.rb.erb", "config/initializers/ikibana.rb"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ikibana-0.1.2 lib/generators/ikibana/install/install_generator.rb
ikibana-0.1.1 lib/generators/ikibana/install/install_generator.rb
ikibana-0.1.0 lib/generators/ikibana/install/install_generator.rb