lib/vendor/thor/lib/thor.rb
# Sets the default task when thor is executed without an explicit task to be called.
#
# ==== Parameters
# meth<Symbol>:: name of the default task
#
Sets the default task when thor is executed without an explicit task to be called.
Parameters
meth:: name of the default task
Sets the default task when thor is executed without an explicit task to be called . Parameters meth :: name of the default task
def create_task(meth) 
        if @usage && @desc
          base_class = @hide ? Thor::HiddenTask : Thor::Task
          tasks[meth] = base_class.new(meth, @desc, @long_desc, @usage, method_options)
          @usage, @desc, @long_desc, @method_options, @hide = nil
          true
        elsif self.all_tasks[meth] || meth == "method_missing"
          true
        else
          puts "[WARNING] Attempted to create task #{meth.inspect} without usage or description. " <<
               "Call desc if you want this method to be available as task or declare it inside a " <<
               "no_tasks{} block. Invoked from #{caller[1].inspect}."
          false
        end
      end
def create_task ( meth ) if @usage && @desc base_class = @hide ? Thor :: HiddenTask : Thor :: Task tasks [ meth ] = base_class . new ( meth , @desc , @long_desc , @usage , method_options ) @usage , @desc , @long_desc , @method_options , @hide = nil true elsif self . all_tasks [ meth ] || meth == "method_missing" true else puts "[WARNING] Attempted to create task #{meth.inspect} without usage or description. " << "Call desc if you want this method to be available as task or declare it inside a " << "no_tasks{} block. Invoked from #{caller[1].inspect}." false end end
Sets the default task when thor is executed without an explicit task to be called.
Sets the default task when thor is executed without an explicit task to be called .
#:nodoc:
meth
<not_specific>