class RubySkynet::Generators::ConfigGenerator
Public Class Methods
source_root()
click to toggle source
# File lib/rails/generators/ruby_skynet/config/config_generator.rb, line 6 def self.source_root @_ruby_skynet_source_root ||= File.expand_path("../templates", __FILE__) end
Public Instance Methods
app_name()
click to toggle source
# File lib/rails/generators/ruby_skynet/config/config_generator.rb, line 10 def app_name Rails::Application.subclasses.first.parent.to_s.underscore end
create_config_file()
click to toggle source
# File lib/rails/generators/ruby_skynet/config/config_generator.rb, line 14 def create_config_file template 'ruby_skynet.yml', File.join('config', "ruby_skynet.yml") end