Class: ActiveAgent::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/active_agent/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_application_agentObject



14
15
16
17
18
19
20
# File 'lib/generators/active_agent/install/install_generator.rb', line 14

def create_application_agent
  in_root do
    if !File.exist?(application_agent_file_name)
      template "application_agent.rb", application_agent_file_name
    end
  end
end

#create_configurationObject



10
11
12
# File 'lib/generators/active_agent/install/install_generator.rb', line 10

def create_configuration
  template "active_agent.yml", "config/active_agent.yml" unless options[:skip_config]
end