1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-22 14:52:40 +01:00

Create v2 libraries

Summary:
This is how it looks like now:

>     What do you want to name this library? x
> Writing '__phutil_library_init__.php' to 'x/__phutil_library_init__.php'...
> Usage Exception: This library is using libphutil v1, which is no longer supported. Run 'arc liberate --upgrade' to upgrade to v2.

Test Plan:
  $ arc liberate # in new dir

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D3368
This commit is contained in:
vrana 2012-08-22 15:27:13 -07:00
parent 129339019f
commit 7ba210f89a

View file

@ -122,6 +122,7 @@ EOTEXT
echo "No library currently exists at that path...\n"; echo "No library currently exists at that path...\n";
$this->liberateCreateDirectory($path); $this->liberateCreateDirectory($path);
$this->liberateCreateLibrary($path); $this->liberateCreateLibrary($path);
return;
} }
} }
@ -227,8 +228,9 @@ EOTEXT
"<?php\n\n". "<?php\n\n".
"phutil_register_library('{$name}', __FILE__);\n"; "phutil_register_library('{$name}', __FILE__);\n";
echo "Writing '__phutil_library_init__.php' to '{$init_path}'...\n"; echo "Writing '__phutil_library_init__.php' to '{$path}'...\n";
Filesystem::writeFile($init_path, $template); Filesystem::writeFile($init_path, $template);
$this->liberateVersion2($path);
} }