This repository has been archived by the owner on Sep 25, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Task for making a plugin out of conductor
- Loading branch information
Showing
4 changed files
with
21 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Add routes | ||
# Add view paths? |
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Install CSS and JS? |
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Remove CSS and JS? |
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
desc 'Turn conductor into a plugin.' | ||
task :pluginize => :environment do | ||
mkdir_p('pkg/conductor') | ||
|
||
cp_r 'app/controllers/conductor', 'pkg/conductor/lib' | ||
cp_r 'app/views/conductor', 'pkg/conductor/lib/views' | ||
|
||
FileList['app/helpers/conductor/*'].each do |helper| | ||
cp_r helper, "pkg/conductor/lib/conductor/#{File.basename(helper)}" | ||
end | ||
end | ||
|
||
namespace :pluginize do | ||
task :clobber do | ||
FileUtils.rm_r('pkg') | ||
end | ||
end |