Class: Homebrew::DevCmd::Create

Inherits:
AbstractCommand show all
Defined in:
dev-cmd/create.rb

Instance Attribute Summary

Attributes inherited from AbstractCommand

#args

Instance Method Summary collapse

Methods inherited from AbstractCommand

command, command_name, #initialize, parser

Constructor Details

This class inherits a constructor from Homebrew::AbstractCommand

Instance Method Details

#runvoid

This method returns an undefined value.

Create a formula from a tarball URL.



70
71
72
73
74
75
76
77
78
# File 'dev-cmd/create.rb', line 70

def run
  path = if args.cask?
    create_cask
  else
    create_formula
  end

  exec_editor path
end