lib/nanoc/cli/commands/create-item.rb in nanoc-3.7.4 vs lib/nanoc/cli/commands/create-item.rb in nanoc-3.7.5

- old
+ new

@@ -9,13 +9,11 @@ EOS required :c, :vcs, 'specify the VCS to use' module Nanoc::CLI::Commands - class CreateItem < ::Nanoc::CLI::CommandRunner - def run # Check arguments if arguments.length != 1 raise Nanoc::Errors::GenericTrivial, "usage: #{command.usage}" end @@ -43,17 +41,15 @@ # Create item data_source = site.data_sources[0] data_source.create_item( "Hi, I'm a new item!\n", - { :title => 'A New Item' }, + { title: 'A New Item' }, identifier ) puts "An item has been created at #{identifier}." end - end - end runner Nanoc::CLI::Commands::CreateItem