Sha256: d64332e3e2144663b6579770310ab584e795f7af2c64a25eac80981e074cba30
Contents?: true
Size: 1.01 KB
Versions: 3
Compression:
Stored size: 1.01 KB
Contents
$:.unshift(File.dirname(__FILE__) + '/../lib') require 'scrooge' Scrooge::Framework::Rails namespace :scrooge do desc "Copies over the example scrooge.yml file to the host framework's configuration directory" task :setup do Scrooge::Base.setup! end desc "List all available Scrooge scopes" task :list do any_scopes do Scrooge::Profile.framework.scopes.each do |scope| puts "- #{scope}" end end end desc "Dumps Resources and Models for a given scope to a human friendly format.Assumes ENV['scope'] is set." task :inspect do any_scopes do begin Scrooge::Base.profile.scope = ENV['scope'] puts Scrooge::Base.profile.tracker.inspect rescue Scrooge::Framework::Base::InvalidScopeSignature puts "Please set ENV['scope'] to the scope you'd like to inspect." end end end def any_scopes if Scrooge::Profile.framework.scopes? yield else puts "There's no existing Scrooge scopes!" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
methodmissing-scrooge-1.0.2 | tasks/scrooge.rake |
methodmissing-scrooge-1.0.3 | tasks/scrooge.rake |
methodmissing-scrooge-1.0.4 | tasks/scrooge.rake |