Skip to content

Commit

Permalink
Merge pull request #128 from wazery/master
Browse files Browse the repository at this point in the history
Rename bin to exe to match the new Bundler convention
  • Loading branch information
wazery committed Apr 16, 2015
2 parents 2b5c856 + fa4beb0 commit 2ab25fc
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .document
@@ -1,6 +1,6 @@
README.rdoc
CHANGELOG.rdoc
lib/**/*.rb
bin/*
exe/*
features/**/*.feature
LICENSE
4 changes: 2 additions & 2 deletions .gitignore
Expand Up @@ -12,5 +12,5 @@ pkg
.sass-cache/**/*
test_project/.sass-cache/**/*
junk/*
!bin/serve
bin/*
!exe/serve
exe/*
3 changes: 1 addition & 2 deletions serve.gemspec
Expand Up @@ -25,7 +25,7 @@ Gem::Specification.new do |s|
"README.rdoc",
"Rakefile",
"VERSION",
"bin/serve",
"exe/serve",
"lib/serve.rb",
"lib/serve/application.rb",
"lib/serve/bootstrap/Gemfile",
Expand Down Expand Up @@ -162,4 +162,3 @@ Gem::Specification.new do |s|
s.add_dependency(%q<coffee-script>, ["~> 2.2.0"])
end
end

6 changes: 3 additions & 3 deletions tasks/jeweler.rake
Expand Up @@ -7,13 +7,13 @@ begin
gem.email = "me@johnwlong.com"
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
Expand Down
12 changes: 6 additions & 6 deletions tasks/website.rake
Expand Up @@ -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/ wiseheart@wiseheartdesign.com:~/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

0 comments on commit 2ab25fc

Please sign in to comment.