Name
App::Sqitch::Command::bundle - Bundle Sqitch changes for distribution
Synopsis
my $cmd = App::Sqitch::Command::bundle->new(%params);
$cmd->execute;
Description
Bundles a Sqitch project for distribution. Done by creating a new directory and copying the configuration file, plan file, and change files into it.
Interface
Attributes
from
Change from which to build the bundled plan.
to
Change up to which to build the bundled plan.
all
Boolean indicating whether or not to run the command against all plans in the project.
Instance Methods
execute
$bundle->execute($command);
Executes the bundle
command.
bundle_config
$bundle->bundle_config;
Copies the configuration file to the bundle directory.
bundle_plan
$bundle->bundle_plan($target);
Copies the plan file for the specified target to the bundle directory.
bundle_scripts
$bundle->bundle_scripts($target);
Copies the deploy, revert, and verify scripts for each step in the plan for the specified target to the bundle directory. Files in the script directories that do not correspond to changes in the plan will not be copied.
dest_top_dir
my $top_dir = $bundle->top_dir($target);
Returns the destination top directory for the specified target.
dest_deploy_dir
my $deploy_dir = $bundle->deploy_dir($target);
Returns the destination deploy directory for the specified target.
dest_revert_dir
my $revert_dir = $bundle->revert_dir($target);
Returns the destination revert directory for the specified target.
dest_verify_dir
my $verify_dir = $bundle->verify_dir($target);
Returns the destination verify directory for the specified target.
See Also
- sqitch-bundle
-
Documentation for the
bundle
command to the Sqitch command-line client. - sqitch
-
The Sqitch command-line client.
Author
David E. Wheeler <david@justatheory.com>
License
Copyright (c) 2012-2015 iovation Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.