-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #128 from wazery/master
Rename bin to exe to match the new Bundler convention
- Loading branch information
Showing
6 changed files
with
13 additions
and
30 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
README.rdoc | ||
CHANGELOG.rdoc | ||
lib/**/*.rb | ||
bin/* | ||
exe/* | ||
features/**/*.feature | ||
LICENSE |
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 |
---|---|---|
|
@@ -12,5 +12,5 @@ pkg | |
.sass-cache/**/* | ||
test_project/.sass-cache/**/* | ||
junk/* | ||
!bin/serve | ||
bin/* | ||
!exe/serve | ||
exe/* |
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 | Diff line number | Diff line change |
---|---|---|
|
@@ -7,13 +7,13 @@ begin | |
gem.email = "[email protected]" | ||
gem.homepage = "http://get-serve.com" | ||
gem.authors = ["John W. Long", "Adam I. Williams", "Robert Evans"] | ||
gem.files = FileList["[A-Z]*", "{bin,lib,rails,spec}/**/*"].exclude("tmp") | ||
|
||
gem.files = FileList["[A-Z]*", "{exe,lib,rails,spec}/**/*"].exclude("tmp") | ||
gem.files << 'lib/serve/templates/blank/.empty' | ||
gem.files << 'lib/serve/templates/default/public/.htaccess' | ||
|
||
gem.license = 'MIT' | ||
|
||
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings | ||
end | ||
Jeweler::GemcutterTasks.new | ||
|
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 |
---|---|---|
|
@@ -7,29 +7,29 @@ def ok_failed(condition) | |
end | ||
|
||
namespace :website do | ||
|
||
desc "remove files in output directory" | ||
task :clean do | ||
puts "Removing output..." | ||
Dir["website/output/*"].each { |f| rm_rf(f) } | ||
end | ||
|
||
desc "generate website in output directory" | ||
task :generate => :clean do | ||
puts "Generating website..." | ||
system "bin/serve export website website/output" | ||
system "exe/serve export website website/output" | ||
end | ||
|
||
desc "generate and deploy website" | ||
task :deploy => :generate do | ||
print "Deploying website..." | ||
ok_failed system("rsync -avz --delete --rsync-path=/usr/local/bin/rsync website/output/ [email protected]:~/domains/get-serve.com/web/public") | ||
end | ||
|
||
desc "serve website using serve (how meta)" | ||
task :serve do | ||
puts "Serving website..." | ||
system "serve website" | ||
end | ||
|
||
end |