Sha256: 9df8e6587fd6f612562264cbdc360c06d1ce3e6a37f35ed5afda4ef47fd391d6

Contents?: true

Size: 520 Bytes

Versions: 21

Compression:

Stored size: 520 Bytes

Contents

module RubySkynet
  module Generators
    class ConfigGenerator < Rails::Generators::Base
      desc "Creates a Ruby Skynet configuration file at config/ruby_skynet.yml"

      def self.source_root
        @_ruby_skynet_source_root ||= File.expand_path("../templates", __FILE__)
      end

      def app_name
        Rails::Application.subclasses.first.parent.to_s.underscore
      end

      def create_config_file
        template 'ruby_skynet.yml', File.join('config', "ruby_skynet.yml")
      end

    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
ruby_skynet-2.0.0 lib/rails/generators/ruby_skynet/config/config_generator.rb
ruby_skynet-1.3.0.alpha3 lib/rails/generators/ruby_skynet/config/config_generator.rb
ruby_skynet-1.3.0.alpha2 lib/rails/generators/ruby_skynet/config/config_generator.rb
ruby_skynet-1.3.0.alpha1 lib/rails/generators/ruby_skynet/config/config_generator.rb
ruby_skynet-2.0.0.rc1 lib/rails/generators/ruby_skynet/config/config_generator.rb
ruby_skynet-1.2.7 lib/rails/generators/ruby_skynet/config/config_generator.rb
ruby_skynet-1.2.6 lib/rails/generators/ruby_skynet/config/config_generator.rb
ruby_skynet-1.2.5 lib/rails/generators/ruby_skynet/config/config_generator.rb
ruby_skynet-1.2.4 lib/rails/generators/ruby_skynet/config/config_generator.rb
ruby_skynet-1.2.3 lib/rails/generators/ruby_skynet/config/config_generator.rb
ruby_skynet-1.2.2 lib/rails/generators/ruby_skynet/config/config_generator.rb
ruby_skynet-1.2.1 lib/rails/generators/ruby_skynet/config/config_generator.rb
ruby_skynet-1.2.0 lib/rails/generators/ruby_skynet/config/config_generator.rb
ruby_skynet-1.1.1 lib/rails/generators/ruby_skynet/config/config_generator.rb
ruby_skynet-1.1.0 lib/rails/generators/ruby_skynet/config/config_generator.rb
ruby_skynet-1.0.0 lib/rails/generators/ruby_skynet/config/config_generator.rb
ruby_skynet-0.8.1 lib/rails/generators/ruby_skynet/config/config_generator.rb
ruby_skynet-0.8.0 lib/rails/generators/ruby_skynet/config/config_generator.rb
ruby_skynet-0.7.0 lib/rails/generators/ruby_skynet/config/config_generator.rb
ruby_skynet-0.6.0 lib/rails/generators/ruby_skynet/config/config_generator.rb