Class: Homebrew::DevCmd::Create Private

Inherits:
AbstractCommand show all
Defined in:
dev-cmd/create.rb,
sorbet/rbi/dsl/homebrew/dev_cmd/create.rbi

This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

Defined Under Namespace

Classes: Args

Instance Method Summary collapse

Methods inherited from AbstractCommand

command, command_name, dev_cmd?, #initialize, parser, ruby_cmd?

Constructor Details

This class inherits a constructor from Homebrew::AbstractCommand

Instance Method Details

#argsHomebrew::DevCmd::Create::Args

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.



10
# File 'sorbet/rbi/dsl/homebrew/dev_cmd/create.rbi', line 10

def args; end

#runvoid

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

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