Skip to content
Browse files

schnitzelpress CLI: remove -b option, improve -g option

  • Loading branch information...
1 parent 25778b7 commit 5857058954dccbe5d3500fc1f954779517562c84 @hmans committed Apr 4, 2012
Showing with 6 additions and 5 deletions.
  1. +6 −5 lib/schnitzelpress/cli.rb
View
11 lib/schnitzelpress/cli.rb
@@ -7,19 +7,20 @@ class Cli < Thor
source_root(File.expand_path('../../templates', __FILE__))
desc "create NAME", "Creates a new Schnitzelpress blog."
- method_option :git, :aliases => "-g", :default => false,
+ method_option :git, :aliases => "-g", :default => false, :type => :boolean,
:desc => "Initialize a git repository in your blog's directory."
- method_option :bundle, :aliases => "-b", :default => false,
- :desc => "Run 'bundle install' after generating your new blog."
def create(name)
@name = name
self.destination_root = name
directory 'new_blog', '.'
in_root do
- run "bundle" if options[:bundle]
- run "git init" if options[:git]
+ if options[:git]
+ run "git init"
+ run "git add ."
+ run "git commit -m 'Created new Schnitzelpress blog'"
+ end
end
end

0 comments on commit 5857058

Please sign in to comment.
Something went wrong with that request. Please try again.