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