Class: RaygunRuby::ThorStuff

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/RaygunRuby/thor_stuff.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



7
8
9
# File 'lib/RaygunRuby/thor_stuff.rb', line 7

def self.source_root
  File.dirname(__FILE__)
end

Instance Method Details

#create_raygun_configObject



13
14
15
16
17
18
# File 'lib/RaygunRuby/thor_stuff.rb', line 13

def create_raygun_config
  @apiKey = ask "What is your RayGun api key?:"
  template "../../templates/raygun_yaml.tt", "#{Rails.root}/config/raygun.yml"
  puts "Generating raygun.yml"
  puts "You can edit the configuration in config/raygun.yml"
end