Skip to content

Commit

Permalink
Add support for GitHub pages. awestruct#91
Browse files Browse the repository at this point in the history
  • Loading branch information
lance committed Apr 11, 2012
1 parent b0f8cb1 commit a1b806b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions awestruct.gemspec
Expand Up @@ -33,5 +33,8 @@ Gem::Specification.new do |s|
s.add_dependency 'fssm', '~> 0.2.8.1'
s.add_dependency 'json', '~> 1.6.6'
s.add_dependency 'notifier', '~> 0.1.4'
s.add_dependency 'git', '~> 1.2.5'

s.add_development_dependency 'rspec', '~> 2.9'
end

8 changes: 7 additions & 1 deletion bin/awestruct
Expand Up @@ -9,6 +9,7 @@ require 'awestruct/commands/init'
require 'awestruct/commands/generate'
require 'awestruct/commands/server'
require 'awestruct/commands/deploy'
require 'awestruct/commands/git_hub_pages'
require 'yaml'
require 'fssm'
require 'fileutils'
Expand Down Expand Up @@ -203,7 +204,12 @@ if ( options.deploy )
end

puts "deploying to '#{options.profile}'"
cmd = Awestruct::Commands::Deploy.new( site_path, deploy_data )
if (deploy_data['host'] == 'github_pages')
puts "publishing to github pages"
cmd = Awestruct::Commands::GitHubPages.new( site_path )
else
cmd = Awestruct::Commands::Deploy.new( site_path, deploy_data )
end
cmd.run
puts "deploy finished"
exit
Expand Down

0 comments on commit a1b806b

Please sign in to comment.