class Scruber::CLI::Generators::UserAgentsInstall
Public Instance Methods
change_config()
click to toggle source
# File lib/scruber/user/agents/cli/generators.rb, line 15 def change_config comment_lines 'config/initializers/user_agents.rb', /add "/ uncomment_lines 'config/initializers/user_agents.rb', /loop \:user_agents/ uncomment_lines 'config/initializers/user_agents.rb', /add ua\['name'\]/ uncomment_lines 'config/initializers/user_agents.rb', /end/ end
check_for_project()
click to toggle source
# File lib/scruber/user/agents/cli/generators.rb, line 11 def check_for_project raise ::Thor::Error, "ERROR: Scruber project not found." unless defined?(APP_PATH) end