Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adds a gem post install message

  • Loading branch information...
commit 6be669119cdb617c16b0020c4f01d95ea9a1e3b7 1 parent 6df26c2
@tvdeyen tvdeyen authored
Showing with 23 additions and 5 deletions.
  1. +18 −0 alchemy_cms.gemspec
  2. +5 −5 lib/tasks/install.rake
View
18 alchemy_cms.gemspec
@@ -14,6 +14,24 @@ Gem::Specification.new do |s|
s.requirements << 'ImageMagick (libmagick), v6.6 or greater.'
s.required_ruby_version = '~> 1.9.2'
s.license = 'BSD New'
+ s.post_install_message = "Fuck you!"
+# s.post_install_message = <<-POST_INSTALL
+
+# _______.-=` Alchemy CMS Post Install Message ´=-._______
+
+# A. If you are installing Alchemy the first time
+# ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+# $ bundle exec rake alchemy:install
+
+# B. If you are upgrading an existing Alchemy installation
+# ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+# $ bundle exec rake alchemy:upgrade
+
+# Please follow the on screen instructions.
+
+# ♥ ♥ ♥ ♥ ♥ ♥ ♥ Thanks for using Alchemy CMS ♥ ♥ ♥ ♥ ♥ ♥ ♥
+
+# POST_INSTALL
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
View
10 lib/tasks/install.rake
@@ -7,10 +7,10 @@ class Alchemy::RoutesInjector < Thor
no_tasks do
def inject
- mountpoint = ask "\nWhere do you want to mount Alchemy CMS? (/)"
- mountpoint = "/" if mountpoint.empty?
+ @mountpoint = ask "\nWhere do you want to mount Alchemy CMS? (/)"
+ @mountpoint = "/" if @mountpoint.empty?
sentinel = /\.routes\.draw do(?:\s*\|map\|)?\s*$/
- inject_into_file "./config/routes.rb", "\n mount Alchemy::Engine => '#{mountpoint}'\n", { :after => sentinel, :verbose => true }
+ inject_into_file "./config/routes.rb", "\n mount Alchemy::Engine => '#{@mountpoint}'\n", { :after => sentinel, :verbose => true }
end
end
end
@@ -36,13 +36,13 @@ Now:
2. Open your browser and enter the following URL:
- http://localhost:3000/admin/signup
+ http://localhost:3000/#{@mountpoint == '/' ? '' : @mountpoint}/admin/signup
3. Follow the instructions to complete the installation!
Thank you for using Alchemy CMS!
-http://alchemy-cms.com
+http://alchemy-cms.com/
EOF
end
Please sign in to comment.
Something went wrong with that request. Please try again.