lib/autumn/tool/bin.rb
def create(command) # {{{
          create_options(opts = {}).parse!(ARGV)
          unless ARGV.size == 1
            $stderr.puts "Invalid options given: #{ARGV.join(" ")}"
            exit 1
          end
          project_name = ARGV.shift
          if project_name.nil?
            $stderr.puts "Must supply a valid project name, you gave none."
            puts usage
            exit 1
          end
          include_autumn
          require 'autumn/tool/create'
          Autumn::Tool::Create.create(project_name, opts)
        end
# This class contains the command methods {{{
This class contains the command methods {{{
This class contains the command methods {{{
def create(command) 
          create_options(opts = {}).parse!(ARGV)
          unless ARGV.size == 1
            $stderr.puts "Invalid options given: #{ARGV.join(" ")}"
            exit 1
          end
          project_name = ARGV.shift
          if project_name.nil?
            $stderr.puts "Must supply a valid project name, you gave none."
            puts usage
            exit 1
          end
          include_autumn
          require 'autumn/tool/create'
          Autumn::Tool::Create.create(project_name, opts)
        end
def create ( command ) create_options ( opts = { } ) . parse! ( ARGV ) unless ARGV . size == 1 $stderr . puts "Invalid options given: #{ARGV.join(" ")}" exit 1 end project_name = ARGV . shift if project_name . nil? $stderr . puts "Must supply a valid project name, you gave none." puts usage exit 1 end include_autumn require 'autumn/tool/create' Autumn :: Tool :: Create . create ( project_name , opts ) end
This class contains the command methods {{{
This class contains the command methods {{{
# {{{
command