Class: Nopoint::Commands::New
- Inherits:
-
Nopoint::Command
- Object
- Nopoint::Command
- Nopoint::Commands::New
- Defined in:
- lib/nopoint/commands/new.rb
Class Method Summary collapse
Class Method Details
.process(args, options = {}) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/nopoint/commands/new.rb', line 4 def self.process(args, = {}) raise ArgumentError.new('You must specify a name.') if args.empty? = File.(args.join(' '), Dir.pwd) FileUtils.mkdir_p create_sample_files end |