Skip to content

Commit

Permalink
remove all the url config we now don't need
Browse files Browse the repository at this point in the history
  • Loading branch information
lachie committed Aug 14, 2010
1 parent bb9044c commit cc68b8d
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions lib/whereuat/configuration.rb
@@ -1,32 +1,6 @@
module Whereuat module Whereuat

class Configuration class Configuration
attr_accessor :pivotal_tracker_token attr_accessor :pivotal_tracker_token
attr_accessor :pivotal_tracker_project attr_accessor :pivotal_tracker_project

attr_accessor :whereuat_stylesheet_url
attr_accessor :whereuat_javascript_url

def initialize
if Whereuat.assets_path.directory?
use_internal_resources!
else
use_github_resources!
end
end

def use_github_resources!
puts "using github resources"
self.whereuat_stylesheet_url = "http://github.com/plus2/whereuat/raw/master/lib/whereuat/stylesheets/whereuat.css"
self.whereuat_javascript_url = "http://github.com/plus2/whereuat/raw/master/lib/whereuat/javascript/whereuat.js"
end

def use_internal_resources!
puts "using internal resources"
self.whereuat_stylesheet_url = "/whereuat/whereuat.css"
self.whereuat_javascript_url = "/whereuat/whereuat.js"
end
alias :use_dev_resources! :use_internal_resources!
end end

end end

0 comments on commit cc68b8d

Please sign in to comment.