homebrew-cask/lib/cask/cli/edit.rb

13 lines
317 B
Ruby
Raw Normal View History

2012-09-22 12:32:19 +08:00
class Cask::CLI::Edit
def self.run(*arguments)
cask_name, *rest = *arguments
cask_path = Cask.path.join("#{cask_name}.rb")
raise CaskUnavailableError, cask_path.basename('.rb').to_s unless cask_path.file?
exec_editor cask_path
end
def self.help
"edits the cask of the given name"
end
end