lib/daiku/cli.rb in daiku-0.1.0 vs lib/daiku/cli.rb in daiku-0.1.1
- old
+ new
@@ -12,11 +12,11 @@
end
desc "new APP", "Generate a new application with daiku"
method_option :port, required: true, aliases: '-p', type: :numeric, desc: 'Port this app should run on locally.'
method_option :ruby, default: '2.1.5', desc: 'Specify the version of ruby this project should use.'
- method_option :node, default: 'v0.10.33', desc: 'Specify the version of node this project should use.'
+ method_option :node, default: 'v0.10.33', desc: 'Specify the version of node this project should use (for grunt, etc).'
method_option :assets, aliases: '-a', desc: 'Choose the assets workflow this project uses.', enum: Daiku::Plugins.plugin_names('assets')
method_option :errors, aliases: '-e', desc: 'Choose the error reporting lib this project uses.', enum: Daiku::Plugins.plugin_names('errors')
method_option :jobs, aliases: '-j', desc: 'Choose the background jobs lib this project uses.', enum: Daiku::Plugins.plugin_names('jobs')
method_option :models, aliases: '-m', desc: 'Choose the data modeling lib this project uses.', enum: Daiku::Plugins.plugin_names('models')
method_option :monitors, aliases: '-M', desc: 'Choose the monitoring lib this project uses.', enum: Daiku::Plugins.plugin_names('monitors')
@@ -24,9 +24,10 @@
method_option :sql, type: :boolean, desc: "SQL or No-SQL? If SQL, assumes postgresql", default: true
def new(app)
@app = app
@port = options[:port]
@ruby = options[:ruby]
+ @node = options[:node]
@models = options[:models]
@assets = options[:assets]
@jobs = options[:jobs]
# do the dew