forked from bborn/communityengine
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
beginnings of an install rake task, some ui stuff as well
- Loading branch information
Bruno Bornsztein
committed
May 22, 2008
1 parent
fbd929e
commit 291407f
Showing
11 changed files
with
37 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,5 +1,4 @@ | |||
.poll_excerpt | .poll_excerpt | ||
%h4.question | =image_tag 'icons/poll.png', :plugin => 'community_engine' | ||
= poll.question | = poll.question | ||
= link_to "Vote Now!", new_vote_path(:post_id => poll.post.id), {:title => 'Log in to vote', :class => 'vote'} | = link_to "Vote Now!", new_vote_path(:post_id => poll.post.id), {:title => 'Log in to vote', :class => 'vote'} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,29 @@ | |||
namespace :community_engine do | |||
|
|||
desc 'Install Community Engine for the first time' | |||
task :install => [:check_required_gems] do | |||
|
|||
Rake::Task["community_engine:generate_plugin_migrations"].invoke | |||
#check for engines plugin | |||
end | |||
|
|||
desc 'Check if the required gems are present' | |||
task :check_required_gems do | |||
#check if we have the required gems | |||
installed_gems = `gem list --no-details --no-versions`.split("\n") | |||
required_gems = %w(rmagick hpricot mime-types htmlentities RedCloth rake mysql) | |||
missing_gems = required_gems-installed_gems | |||
|
|||
if missing_gems.any? | |||
raise "CommunityEngine installation can't continue because you are missing these required gems: \n - #{missing_gems.join("\n- ")}" | |||
end | |||
end | |||
|
|||
desc 'Generate CommunityEngine plugin migrations' | |||
task :generate_plugin_migrations do | |||
`./script/generate plugin_migration community_engine` | |||
end | |||
|
|||
end | |||
|
|||
|