Class: MrHyde::Commands::New
- Inherits:
-
MrHyde::Command
- Object
- MrHyde::Command
- MrHyde::Commands::New
- Defined in:
- lib/mr_hyde/commands/new.rb
Class Method Summary collapse
-
.process(args, opts = {}) ⇒ Object
Options :type => what type of element we want to create [:blog|:site] by default it creates a new MrHyde site if :type is :blog then :name => blog’s name.
Methods inherited from MrHyde::Command
configuration, configuration_from_options
Class Method Details
.process(args, opts = {}) ⇒ Object
Options
:type => what type of element we want to create [:blog|:site]
by default it creates a new MrHyde site
if :type is :blog then
:name => blog's name
21 22 23 24 25 26 |
# File 'lib/mr_hyde/commands/new.rb', line 21 def process(args, opts = {}) case args.delete(:type) when :site then new_site(args[:args], opts) else scaffold(args, opts) end end |