Skip to content
Snippets Groups Projects
Commit 4cea6157 authored by Max Howell's avatar Max Howell
Browse files

include FileUtils into Formula

Thus mv, rm etc, functions are almost as handy as pure shell scripting, without issues related to spaces in filenames.
parent 1dc9df13
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,7 @@
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
require 'download_strategy'
require 'fileutils'
class FormulaUnavailableError <RuntimeError
def initialize name
......@@ -92,6 +93,8 @@ end
# Derive and define at least @url, see Library/Formula for examples
class Formula
include FileUtils
# Homebrew determines the name
def initialize name='__UNKNOWN__'
set_instance_variable 'url'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment