Permalink
Browse files

remove /install page

  • Loading branch information...
1 parent 2e3a3c6 commit 81fcacd9d0ea0a4a0df84dd2e543984db2e2a9ba @defunkt defunkt committed Mar 20, 2011
Showing with 0 additions and 71 deletions.
  1. +0 −4 app/app.rb
  2. +0 −14 app/helpers.rb
  3. +0 −1 app/libraries.rb
  4. +0 −20 app/templates/install.mustache
  5. +0 −20 app/views/install.rb
  6. +0 −12 public/css/style.css
View
@@ -97,10 +97,6 @@ def initialize(*args)
File.read('test/xml')
end
- get '/install/?' do
- mustache :install
- end
-
get '/about/?' do
mustache :about
end
View
@@ -76,19 +76,5 @@ def default_hurls
path = File.expand_path(App.root + '/hurls.yaml')
@default_hurls = YAML.load_file(path)
end
-
- # ensure we have everything installed (on boot)
- def check_for_dependencies
- return if @checked || request.path_info == "/install"
- @checked = true
-
- if missing_dependencies?
- throw(:halt, [ 302, {'Location' => '/install'}, [ ]])
- end
- end
-
- def missing_dependencies?
- not Views::Install.new.everything_installed?
- end
end
end
View
@@ -27,4 +27,3 @@
require 'models/user'
require 'views/layout'
-require 'views/install'
@@ -1,20 +0,0 @@
-{{# everything_installed?}}
- <h2>Congrats &mdash; you've successfully installed Hurl!</h2>
-{{/ everything_installed?}}
-
-{{^ everything_installed?}}
- <h2>You're almost done installing Hurl...</h2>
-
- <ul id="install">
- {{^ pygments_installed?}}
- <li>
- <p>
- Pygments isn't installed!
- install it:
- </p>
-
- <pre><code>{{ pygments_install }}</code></pre>
- </li>
- {{/ pygments_installed?}}
- </ul>
-{{/ everything_installed?}}
View
@@ -1,20 +0,0 @@
-module Views
- class Install < Layout
- def everything_installed?
- @everything_installed ||= pygments_installed?
- end
-
- def pygments_installed?
- command? "which #{Albino.bin}"
- end
-
- def pygments_install
- "easy_install pygments"
- end
-
- def command?(command)
- system(command)
- $?.exitstatus == 0
- end
- end
-end
View
@@ -270,15 +270,3 @@ td.date {
.unicorn {
text-align: center;
}
-/* install */
-#install li {
- margin-bottom: 15px;
-}
-#install pre {
- background: #444;
- color: #fff;
- font-family:'Bitstream Vera Sans Mono','Courier',monospace;
- padding: 15px;
- -moz-border-radius: 5px;
- -webkit-border-radius: 5px;
-}

0 comments on commit 81fcacd

Please sign in to comment.