lib/mr_poole/cli.rb
def do_create(action)
      options = do_creation_options
      options.title ||= @params.first

      @helper.send("#{action}_usage") unless options.title
      fn = @commands.send(action, options)
      puts "#{@src_dir}/#{fn}"
    end
def do_create(action)
      options = do_creation_options
      options.title ||= @params.first

      @helper.send("#{action}_usage") unless options.title
      fn = @commands.send(action, options)
      puts "#{@src_dir}/#{fn}"
    end
def do_create ( action ) options = do_creation_options options . title ||= @params . first @helper . send ( "#{action}_usage" ) unless options . title fn = @commands . send ( action , options ) puts "#{@src_dir}/#{fn}" end
action is a string, either 'post' or 'draft'
action is a string either post or draft