lib/bio-gem/mod/jeweler/options.rb in bio-gem-1.0.0 vs lib/bio-gem/mod/jeweler/options.rb in bio-gem-1.1.0
- old
+ new
@@ -8,10 +8,11 @@
@orig_args = args.clone
self[:testing_framework] = :shoulda
self[:documentation_framework] = :rdoc
self[:use_bundler] = true
+ self[:create_repo] = true
git_config = if Pathname.new("~/.gitconfig").expand_path.exist?
Git.global_config
else
{}
@@ -42,15 +43,20 @@
o.on("--with-bin", 'create the bin directory and an executable template script called bioreponame') do
self[:biogem_bin] = true
end
- o.on("--with-db", 'create the database directory for a db application-library') do
+ o.on('--with-db', 'create the database directory for a db application-library.') do
self[:biogem_db] = true
end
- o.on("--with-test-data",'create the data directory inside the test directory if the user need to set up a test with its own dataset') do
+ o.on('--with-test-data','create the data directory inside the test directory if the user need to set up a test with its own dataset') do
self[:biogem_test_data] = true
+ end
+
+ o.on('--with-engine [NAMESPACE]', 'create a Rails engine with the namespace given in input. Set default database creation') do |namespace|
+ self[:biogem_engine] = namespace
+ self[:biogem_db] = true
end
o.separator ""
o.separator "These options are for Jeweler"
\ No newline at end of file